]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/ip_output.c
[NET]: Move hardware header operations out of netdevice.
[net-next-2.6.git] / net / ipv4 / ip_output.c
index 77f67b7cb9bffa509b2b96a36dc9a275ce6e23ef..699f06781fd891df9882d1c77c0c335f8d7a7252 100644 (file)
@@ -169,7 +169,7 @@ static inline int ip_finish_output2(struct sk_buff *skb)
                IP_INC_STATS(IPSTATS_MIB_OUTBCASTPKTS);
 
        /* Be paranoid, rather than too clever. */
-       if (unlikely(skb_headroom(skb) < hh_len && dev->hard_header)) {
+       if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) {
                struct sk_buff *skb2;
 
                skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev));