Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27569
b: refs/heads/master
c: d1e100b
h: refs/heads/master
i:
  27567: 8cc3544
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Jun 18, 2006
1 parent 33a53b1 commit 2be5c6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ef80aef118e405f2b6505f623830e6e73224f85
refs/heads/master: d1e100ba69131bb788e89a07b94b08f6e006725a
4 changes: 2 additions & 2 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,7 @@ bnx2_rx_int(struct bnx2 *bp, int budget)
skb->protocol = eth_type_trans(skb, bp->dev);

if ((len > (bp->dev->mtu + ETH_HLEN)) &&
(htons(skb->protocol) != 0x8100)) {
(ntohs(skb->protocol) != 0x8100)) {

dev_kfree_skb_irq(skb);
goto next_rx;
Expand Down Expand Up @@ -4310,7 +4310,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev)
ip_tcp_len = (skb->nh.iph->ihl << 2) + sizeof(struct tcphdr);

skb->nh.iph->check = 0;
skb->nh.iph->tot_len = ntohs(mss + ip_tcp_len + tcp_opt_len);
skb->nh.iph->tot_len = htons(mss + ip_tcp_len + tcp_opt_len);
skb->h.th->check =
~csum_tcpudp_magic(skb->nh.iph->saddr,
skb->nh.iph->daddr,
Expand Down

0 comments on commit 2be5c6b

Please sign in to comment.