]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iavf: Add ability to turn off CRC stripping for VF
authorNorbert Zulinski <norbertx.zulinski@intel.com>
Wed, 6 Sep 2023 19:57:04 +0000 (13:57 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 13 Sep 2023 15:59:14 +0000 (08:59 -0700)
commit7559d6724298004b696ffead61ee5dce1f97e908
treebe89c1c3896d6f2a3f969bc42806ddc7a068d3f4
parent7bd48d8d414b378caa5d8a374b931196f8d173e9
iavf: Add ability to turn off CRC stripping for VF

Previously CRC stripping was always enabled for VF.

Now it is possible to turn off CRC stripping via ethtool:

    #ethtool -K <interface> rx-fcs on

To turn off CRC stripping, first VLAN stripping must be disabled:

    #ethtool -K <interface> rx-vlan-offload off

if any VLAN interfaces exists, otherwise VLAN stripping will be turned
off by the driver.

In iavf_configure_queues add check if CRC stripping is enabled for
VF, if it's enabled then set crc_disabled to false on every VF's
queue. In iavf_set_features add check if CRC stripping setting was
changed then schedule reset.

Signed-off-by: Norbert Zulinski <norbertx.zulinski@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c