aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_hw.h
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2009-07-06 06:45:01 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-06 21:07:52 -0400
commitb7cb8c2c8275ab081b97610b13a83c80904571a6 (patch)
treed65785b59b2adadc5e428392ecde3144afc0e70c /drivers/net/e1000/e1000_hw.h
parentedbbb3ca107715067b27a71e6ea7f58750912aa2 (diff)
e1000: fix flow control thresholds
when testing the jumbo frames with pages patch, the stats would show rx_missed errors (dropped packets) even when connected to a link partner with flow control enabled. this indicates that for this MTU (9000) the flow control thresholds are not adjusting correctly. In fact, before this change, the FCRTH (xoff threshold) is 36864 when the fifo size is only 40000, with 9000 byte MTU. fix it so that we at least have room for one frame after we send the xoff. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000/e1000_hw.h')
-rw-r--r--drivers/net/e1000/e1000_hw.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/e1000/e1000_hw.h b/drivers/net/e1000/e1000_hw.h
index 99fce2c5dd26..a8866bdbb671 100644
--- a/drivers/net/e1000/e1000_hw.h
+++ b/drivers/net/e1000/e1000_hw.h
@@ -523,11 +523,8 @@ s32 e1000_check_phy_reset_block(struct e1000_hw *hw);
523 523
524/* The sizes (in bytes) of a ethernet packet */ 524/* The sizes (in bytes) of a ethernet packet */
525#define ENET_HEADER_SIZE 14 525#define ENET_HEADER_SIZE 14
526#define MAXIMUM_ETHERNET_FRAME_SIZE 1518 /* With FCS */
527#define MINIMUM_ETHERNET_FRAME_SIZE 64 /* With FCS */ 526#define MINIMUM_ETHERNET_FRAME_SIZE 64 /* With FCS */
528#define ETHERNET_FCS_SIZE 4 527#define ETHERNET_FCS_SIZE 4
529#define MAXIMUM_ETHERNET_PACKET_SIZE \
530 (MAXIMUM_ETHERNET_FRAME_SIZE - ETHERNET_FCS_SIZE)
531#define MINIMUM_ETHERNET_PACKET_SIZE \ 528#define MINIMUM_ETHERNET_PACKET_SIZE \
532 (MINIMUM_ETHERNET_FRAME_SIZE - ETHERNET_FCS_SIZE) 529 (MINIMUM_ETHERNET_FRAME_SIZE - ETHERNET_FCS_SIZE)
533#define CRC_LENGTH ETHERNET_FCS_SIZE 530#define CRC_LENGTH ETHERNET_FCS_SIZE