Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134575
b: refs/heads/master
c: 56fbbb4
h: refs/heads/master
i:
  134573: 23f3def
  134571: 18fef1b
  134567: 5b7c03b
  134559: a9eda06
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Feb 16, 2009
1 parent 22ba9f5 commit 48d757b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 1e5c3d218ac19d5a5e9b3a8f09777c2b555b2499
refs/heads/master: 56fbbb4e619f4bf604c350e3948a291bda759101
14 changes: 4 additions & 10 deletions trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2059,17 +2059,11 @@ static void igb_configure_rx(struct igb_adapter *adapter)
} else {
/* Enable Receive Checksum Offload for TCP and UDP */
rxcsum = rd32(E1000_RXCSUM);
if (adapter->rx_csum) {
rxcsum |= E1000_RXCSUM_TUOFL;
if (adapter->rx_csum)
rxcsum |= E1000_RXCSUM_TUOFL | E1000_RXCSUM_IPPCSE;
else
rxcsum &= ~(E1000_RXCSUM_TUOFL | E1000_RXCSUM_IPPCSE);

/* Enable IPv4 payload checksum for UDP fragments
* Must be used in conjunction with packet-split. */
if (adapter->rx_ps_hdr_size)
rxcsum |= E1000_RXCSUM_IPPCSE;
} else {
rxcsum &= ~E1000_RXCSUM_TUOFL;
/* don't need to clear IPPCSE as it defaults to 0 */
}
wr32(E1000_RXCSUM, rxcsum);
}

Expand Down

0 comments on commit 48d757b

Please sign in to comment.