diff options
author | Claudiu Manoil <claudiu.manoil@nxp.com> | 2020-06-18 12:16:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 20:00:33 -0700 |
commit | 9deba33f1b7266a3870c9da31f787b605748fc0c (patch) | |
tree | afce69d4e2a94f0284fbebb221a9db03ad0571d7 /net | |
parent | faa620876b01d6744f1599e279042bb8149247ab (diff) | |
download | lwn-9deba33f1b7266a3870c9da31f787b605748fc0c.tar.gz lwn-9deba33f1b7266a3870c9da31f787b605748fc0c.zip |
enetc: Fix HW_VLAN_CTAG_TX|RX toggling
VLAN tag insertion/extraction offload is correctly
activated at probe time but deactivation of this feature
(i.e. via ethtool) is broken. Toggling works only for
Tx/Rx ring 0 of a PF, and is ignored for the other rings,
including the VF rings.
To fix this, the existing VLAN offload toggling code
was extended to all the rings assigned to a netdevice,
instead of the default ring 0 (likely a leftover from the
early validation days of this feature). And the code was
moved to the common set_features() function to fix toggling
for the VF driver too.
Fixes: d4fd0404c1c9 ("enetc: Introduce basic PF and VF ENETC ethernet drivers")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions