diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2009-06-02 07:28:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-03 05:46:33 -0400 |
commit | 2adc55c959940fc680074392eddbd5585a76f3d9 (patch) | |
tree | bf5050070f1f0ef3dd6d1f951d0a50c7ac8aa161 /drivers/net/e1000e/e1000.h | |
parent | 3ec2a2b80f3eb53851fe4cef9e65b5d33376ef89 (diff) |
e1000e: specify max supported frame size in adapter struct
By putting the maximum frame size supported by the hardware into the
adapter structure, the change_mtu entry point function can be cleaned
up of checks for all the different max frame sizes supported by
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/e1000.h')
-rw-r--r-- | drivers/net/e1000e/e1000.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h index f37360aa12a8..b9dc612082e0 100644 --- a/drivers/net/e1000e/e1000.h +++ b/drivers/net/e1000e/e1000.h | |||
@@ -96,6 +96,8 @@ struct e1000_info; | |||
96 | /* Number of packet split data buffers (not including the header buffer) */ | 96 | /* Number of packet split data buffers (not including the header buffer) */ |
97 | #define PS_PAGE_BUFFERS (MAX_PS_BUFFERS - 1) | 97 | #define PS_PAGE_BUFFERS (MAX_PS_BUFFERS - 1) |
98 | 98 | ||
99 | #define DEFAULT_JUMBO 9234 | ||
100 | |||
99 | enum e1000_boards { | 101 | enum e1000_boards { |
100 | board_82571, | 102 | board_82571, |
101 | board_82572, | 103 | board_82572, |
@@ -293,6 +295,7 @@ struct e1000_adapter { | |||
293 | u32 eeprom_wol; | 295 | u32 eeprom_wol; |
294 | u32 wol; | 296 | u32 wol; |
295 | u32 pba; | 297 | u32 pba; |
298 | u32 max_hw_frame_size; | ||
296 | 299 | ||
297 | bool fc_autoneg; | 300 | bool fc_autoneg; |
298 | 301 | ||
@@ -309,6 +312,7 @@ struct e1000_info { | |||
309 | unsigned int flags; | 312 | unsigned int flags; |
310 | unsigned int flags2; | 313 | unsigned int flags2; |
311 | u32 pba; | 314 | u32 pba; |
315 | u32 max_hw_frame_size; | ||
312 | s32 (*get_variants)(struct e1000_adapter *); | 316 | s32 (*get_variants)(struct e1000_adapter *); |
313 | struct e1000_mac_operations *mac_ops; | 317 | struct e1000_mac_operations *mac_ops; |
314 | struct e1000_phy_operations *phy_ops; | 318 | struct e1000_phy_operations *phy_ops; |