diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-02-12 18:21:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-16 02:06:36 +0300 |
commit | 14b3b46a67f78ade99eafcbf320105615e948569 (patch) | |
tree | 03a08c00a2b3f6024f8a65dcf917533a4acb10a8 /drivers/net/ethernet/intel/i40e/i40e_ethtool.c | |
parent | ec762403bbe95ded1e7dbca468e928535572da8b (diff) | |
download | linux-14b3b46a67f78ade99eafcbf320105615e948569.tar.xz |
net: broadcom: bcm4908_enet: set MTU on open & on request
Hardware comes up with default max frame size set to 1518. When using it
with switch it results in actual Ethernet MTU 1492:
1518 - 14 (Ethernet header) - 4 (Broadcom's tag) - 4 (802.1q) - 4 (FCS)
Above means hardware in its default state can't handle standard Ethernet
traffic (MTU 1500).
Define maximum possible Ethernet overhead and always set MAC max frame
length accordingly. This change fixes handling Ethernet frames of length
1506 - 1514.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_ethtool.c')
0 files changed, 0 insertions, 0 deletions