Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40362
b: refs/heads/master
c: d2a1e21
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Brandeburg authored and Auke Kok committed Oct 24, 2006
1 parent 9e6cf21 commit 4c65a2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 032fe6e9e253ebb37a0df0893844674dea9210fd
refs/heads/master: d2a1e2131aee7b3feb815636dc7917a96e49fd8e
7 changes: 4 additions & 3 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3786,9 +3786,6 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,

length = le16_to_cpu(rx_desc->length);

/* adjust length to remove Ethernet CRC */
length -= 4;

if (unlikely(!(status & E1000_RXD_STAT_EOP))) {
/* All receives must fit into a single buffer */
E1000_DBG("%s: Receive packet consumed multiple"
Expand Down Expand Up @@ -3816,6 +3813,10 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,
}
}

/* adjust length to remove Ethernet CRC, this must be
* done after the TBI_ACCEPT workaround above */
length -= 4;

/* code added for copybreak, this should improve
* performance for small packets with large amounts
* of reassembly being done in the stack */
Expand Down

0 comments on commit 4c65a2a

Please sign in to comment.