diff options
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index d29f22763fec..a37549b5bc1c 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -1946,7 +1946,14 @@ static u8 bnx2x_initial_phy_init(struct bnx2x *bp) | |||
1946 | u8 rc; | 1946 | u8 rc; |
1947 | 1947 | ||
1948 | /* Initialize link parameters structure variables */ | 1948 | /* Initialize link parameters structure variables */ |
1949 | bp->link_params.mtu = bp->dev->mtu; | 1949 | /* It is recommended to turn off RX FC for jumbo frames |
1950 | for better performance */ | ||
1951 | if (IS_E1HMF(bp)) | ||
1952 | bp->link_params.req_fc_auto_adv = FLOW_CTRL_BOTH; | ||
1953 | else if (bp->dev->mtu > 5000) | ||
1954 | bp->link_params.req_fc_auto_adv = FLOW_CTRL_TX; | ||
1955 | else | ||
1956 | bp->link_params.req_fc_auto_adv = FLOW_CTRL_BOTH; | ||
1950 | 1957 | ||
1951 | bnx2x_acquire_phy_lock(bp); | 1958 | bnx2x_acquire_phy_lock(bp); |
1952 | rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars); | 1959 | rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars); |