Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264057
b: refs/heads/master
c: d706f00
h: refs/heads/master
i:
  264055: e7dba6f
v: v3
  • Loading branch information
Daniel Hellstrom authored and David S. Miller committed Sep 20, 2011
1 parent 4212595 commit 5b0ffc1
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 6af29a963cecf426966d56935d60a984bd5594ea
refs/heads/master: d706f00f65146822c0097b796b3557ea8980c305
7 changes: 5 additions & 2 deletions trunk/drivers/net/greth.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev)
if (nr_frags != 0)
status = GRETH_TXBD_MORE;

status |= GRETH_TXBD_CSALL;
if (skb->ip_summed == CHECKSUM_PARTIAL)
status |= GRETH_TXBD_CSALL;
status |= skb_headlen(skb) & GRETH_BD_LEN;
if (greth->tx_next == GRETH_TXBD_NUM_MASK)
status |= GRETH_BD_WR;
Expand All @@ -514,7 +515,9 @@ greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev)
greth->tx_skbuff[curr_tx] = NULL;
bdp = greth->tx_bd_base + curr_tx;

status = GRETH_TXBD_CSALL | GRETH_BD_EN;
status = GRETH_BD_EN;
if (skb->ip_summed == CHECKSUM_PARTIAL)
status |= GRETH_TXBD_CSALL;
status |= frag->size & GRETH_BD_LEN;

/* Wrap around descriptor ring */
Expand Down

0 comments on commit 5b0ffc1

Please sign in to comment.