aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_ethtool.c
diff options
context:
space:
mode:
authorWei Fang <[email protected]>2025-06-13 09:36:05 +0000
committerPaolo Abeni <[email protected]>2025-06-17 10:24:18 +0000
commitdd4a5780f7d95989eaef3486162c1acb4d03d868 (patch)
tree6928b1fd2c06cf5807db922d831f80e0fccfcc9a /drivers/net/ethernet/intel/igc/igc_ethtool.c
parenteth: gianfar: migrate to new RXFH callbacks (diff)
downloadkernel-dd4a5780f7d95989eaef3486162c1acb4d03d868.tar.gz
kernel-dd4a5780f7d95989eaef3486162c1acb4d03d868.zip
net: enetc: replace PCVLANR1/2 with SICVLANR1/2 and remove dead branch
Both PF and VF have rx-vlan-offload enabled, however, the PCVLANR1/2 registers are resources controlled by PF, so VF cannot access these two registers. Fortunately, the hardware provides SICVLANR1/2 registers for each SI to reflect the value of PCVLANR1/2 registers. Therefore, use SICVLANR1/2 instead of PCVLANR1/2. Note that this is not an issue in actual use, because the current driver does not support custom TPID, the driver will not access these two registers in actual use, so this modification is just an optimization. In addition, since ENETC_RXBD_FLAG_TPID is defined as GENMASK(1, 0), the possible values are only 0, 1, 2, 3, so the default branch will never be true, so remove the default branch. Signed-off-by: Wei Fang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_ethtool.c')
0 files changed, 0 insertions, 0 deletions