aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/e1000e/es2lan.c
diff options
context:
space:
mode:
authorGravatar Bruce Allan <bruce.w.allan@intel.com> 2009-06-02 11:28:58 +0000
committerGravatar David S. Miller <davem@davemloft.net> 2009-06-03 02:46:33 -0700
commit2adc55c959940fc680074392eddbd5585a76f3d9 (patch)
treebf5050070f1f0ef3dd6d1f951d0a50c7ac8aa161 /drivers/net/e1000e/es2lan.c
parente1000e: correct flow control thresholds (diff)
downloadlinux-2adc55c959940fc680074392eddbd5585a76f3d9.tar.gz
linux-2adc55c959940fc680074392eddbd5585a76f3d9.tar.bz2
linux-2adc55c959940fc680074392eddbd5585a76f3d9.zip
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/es2lan.c')
-rw-r--r--drivers/net/e1000e/es2lan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/es2lan.c b/drivers/net/e1000e/es2lan.c
index 8964838c686b..6cc3bdf4acdb 100644
--- a/drivers/net/e1000e/es2lan.c
+++ b/drivers/net/e1000e/es2lan.c
@@ -1422,6 +1422,7 @@ struct e1000_info e1000_es2_info = {
| FLAG_DISABLE_FC_PAUSE_TIME /* errata */
| FLAG_TIPG_MEDIUM_FOR_80003ESLAN,
.pba = 38,
+ .max_hw_frame_size = DEFAULT_JUMBO,
.get_variants = e1000_get_variants_80003es2lan,
.mac_ops = &es2_mac_ops,
.phy_ops = &es2_phy_ops,