]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
i40e: consolidate maximum frame size calculation for vsi
authorTirthendu Sarkar <tirthendu.sarkar@intel.com>
Thu, 9 Mar 2023 18:56:08 +0000 (00:26 +0530)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 9 Mar 2023 21:10:52 +0000 (13:10 -0800)
commita4ba62906db80246b24408e5c8a9e9d78b647b00
treefec555a6b375b00fec8d42979e50fa2ff4ef5616
parent5ca26d6039a6b42341f7f5cc8d10d30ca1561a7b
i40e: consolidate maximum frame size calculation for vsi

Introduce new helper function to calculate max frame size for validating
and setting of vsi frame size. This is used while configuring vsi,
changing the MTU and attaching an XDP program to the vsi.

This is in preparation of the legacy rx and multi-buffer changes to be
introduced in later patches.

Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@intel.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c