Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next
authorDavid S. Miller <davem@davemloft.net>
Sun, 17 Sep 2023 10:46:19 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Sep 2023 10:46:19 +0000 (11:46 +0100)
commit319d9c2a931324e48ec9602c7e1d4bed65c43560
treefceec9473f407d15fd18f4df6064c3311702b115
parentfff755e76e64f0274e4d40c8ff273e3bc0ffc8a2
parent7559d6724298004b696ffead61ee5dce1f97e908
Merge branch '40GbE' of git://git./linux/kernel/git/tnguy/next
-queue

Tony Nguyen says:

====================
Support rx-fcs on/off for VFs

Ahmed Zaki says:

Allow the user to turn on/off the CRC/FCS stripping through ethtool. We
first add the CRC offload capability in the virtchannel, then the feature
is enabled in ice and iavf drivers.

We make sure that the netdev features are fixed such that CRC stripping
cannot be disabled if VLAN rx offload (VLAN strip) is enabled. Also, VLAN
stripping cannot be enabled unless CRC stripping is ON.

Testing was done using tcpdump to make sure that the CRC is included in
the frame after:

    # ethtool -K <interface> rx-fcs on

and is not included when it is back "off". Also, ethtool should return an
error for the above command if "rx-vlan-offload" is already on and at least
one VLAN interface/filter exists on the VF.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>