X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fnet%2Fns83820.c;h=3439f8c649f93e5281aed53ceb2a8b9067ff38c3;hb=6ec129c3a2f8b38bc37e42348470ccfcb7460146;hp=9ec6e9e54f47781b99d8c4402bc6930bd0807f6c;hpb=9333907084da2b05db787dba3e714d0be7c84f36;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c index 9ec6e9e54f4..3439f8c649f 100644 --- a/drivers/net/ns83820.c +++ b/drivers/net/ns83820.c @@ -104,7 +104,6 @@ #include #include #include -#include #include #include #include /* for iph */ @@ -607,7 +606,6 @@ static inline int rx_refill(struct net_device *ndev, gfp_t gfp) res &= 0xf; skb_reserve(skb, res); - skb->dev = ndev; if (gfp != GFP_ATOMIC) spin_lock_irqsave(&dev->rx_info.lock, flags); res = ns83820_add_rx_skb(dev, skb); @@ -1157,9 +1155,9 @@ again: extsts = 0; if (skb->ip_summed == CHECKSUM_PARTIAL) { extsts |= EXTSTS_IPPKT; - if (IPPROTO_TCP == skb->nh.iph->protocol) + if (IPPROTO_TCP == ip_hdr(skb)->protocol) extsts |= EXTSTS_TCPPKT; - else if (IPPROTO_UDP == skb->nh.iph->protocol) + else if (IPPROTO_UDP == ip_hdr(skb)->protocol) extsts |= EXTSTS_UDPPKT; }