diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 9c5a8842ed0f..7a1fb52d5cba 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -1820,7 +1820,7 @@ reuse_rx: | |||
1820 | skb->protocol = eth_type_trans(skb, bp->dev); | 1820 | skb->protocol = eth_type_trans(skb, bp->dev); |
1821 | 1821 | ||
1822 | if ((len > (bp->dev->mtu + ETH_HLEN)) && | 1822 | if ((len > (bp->dev->mtu + ETH_HLEN)) && |
1823 | (htons(skb->protocol) != 0x8100)) { | 1823 | (ntohs(skb->protocol) != 0x8100)) { |
1824 | 1824 | ||
1825 | dev_kfree_skb_irq(skb); | 1825 | dev_kfree_skb_irq(skb); |
1826 | goto next_rx; | 1826 | goto next_rx; |
@@ -4310,7 +4310,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
4310 | ip_tcp_len = (skb->nh.iph->ihl << 2) + sizeof(struct tcphdr); | 4310 | ip_tcp_len = (skb->nh.iph->ihl << 2) + sizeof(struct tcphdr); |
4311 | 4311 | ||
4312 | skb->nh.iph->check = 0; | 4312 | skb->nh.iph->check = 0; |
4313 | skb->nh.iph->tot_len = ntohs(mss + ip_tcp_len + tcp_opt_len); | 4313 | skb->nh.iph->tot_len = htons(mss + ip_tcp_len + tcp_opt_len); |
4314 | skb->h.th->check = | 4314 | skb->h.th->check = |
4315 | ~csum_tcpudp_magic(skb->nh.iph->saddr, | 4315 | ~csum_tcpudp_magic(skb->nh.iph->saddr, |
4316 | skb->nh.iph->daddr, | 4316 | skb->nh.iph->daddr, |