[Intel-wired-lan] [PATCH S11 02/16] ice: Fix the calculation of ICE_MAX_MTU

Bowers, AndrewX andrewx.bowers at intel.com
Thu Feb 14 22:46:57 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Friday, February 8, 2019 12:50 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S11 02/16] ice: Fix the calculation of
> ICE_MAX_MTU
> 
> From: Maciej Fijalkowski <maciej.fijalkowski at intel.com>
> 
> 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 at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list