diff options
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index ecd5252c4bf4..ec8bce154364 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -560,7 +560,7 @@ ixgb_sw_init(struct ixgb_adapter *adapter) | |||
560 | hw->subsystem_id = pdev->subsystem_device; | 560 | hw->subsystem_id = pdev->subsystem_device; |
561 | 561 | ||
562 | hw->max_frame_size = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; | 562 | hw->max_frame_size = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; |
563 | adapter->rx_buffer_len = hw->max_frame_size; | 563 | adapter->rx_buffer_len = hw->max_frame_size + 8; /* + 8 for errata */ |
564 | 564 | ||
565 | if((hw->device_id == IXGB_DEVICE_ID_82597EX) | 565 | if((hw->device_id == IXGB_DEVICE_ID_82597EX) |
566 | || (hw->device_id == IXGB_DEVICE_ID_82597EX_CX4) | 566 | || (hw->device_id == IXGB_DEVICE_ID_82597EX_CX4) |
@@ -1573,7 +1573,7 @@ ixgb_change_mtu(struct net_device *netdev, int new_mtu) | |||
1573 | return -EINVAL; | 1573 | return -EINVAL; |
1574 | } | 1574 | } |
1575 | 1575 | ||
1576 | adapter->rx_buffer_len = max_frame; | 1576 | adapter->rx_buffer_len = max_frame + 8; /* + 8 for errata */ |
1577 | 1577 | ||
1578 | netdev->mtu = new_mtu; | 1578 | netdev->mtu = new_mtu; |
1579 | 1579 | ||