summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_sched.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2019-02-08 12:50:29 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-02-25 08:56:01 -0800
commit5ed5d316d90b1487c51b8973c2b845495f3558c0 (patch)
tree2a858bbfbde7491ab641bf5a6aefb54f1e0ced4e /drivers/net/ethernet/intel/ice/ice_sched.c
parent99be37edeb2fc3c9295abefc498cc3cc37eb8357 (diff)
downloadlinux-5ed5d316d90b1487c51b8973c2b845495f3558c0.tar.gz
linux-5ed5d316d90b1487c51b8973c2b845495f3558c0.tar.bz2
linux-5ed5d316d90b1487c51b8973c2b845495f3558c0.zip
ice: Fix the calculation of ICE_MAX_MTU
Currently ICE_MAX_MTU subtracts only ETH_HLEN from max frame size and adds ETH_FCS_LEN and VLAN_HLEN, which is not what was intended. The ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN expression should be surrounded with parentheses. Wrap mentioned expression and take into account VLAN double tagging. Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_sched.c')
0 files changed, 0 insertions, 0 deletions