]> git.baikalelectronics.ru Git - kernel.git/commit
net: enetc: move enetc_set_psfp() out of the common enetc_set_features()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 16 Sep 2022 13:32:08 +0000 (16:32 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 18:27:09 +0000 (11:27 -0700)
commitfed38e64d9b99d65a36c0dbadc3d3f8ddd9ea030
tree0603b0707f02107ea5e166d68c6ba97ae8bd11e6
parent0507246d9e7aaac21e14d653eea7111106e6a136
net: enetc: move enetc_set_psfp() out of the common enetc_set_features()

The VF netdev driver shouldn't respond to changes in the NETIF_F_HW_TC
flag; only PFs should. Moreover, TSN-specific code should go to
enetc_qos.c, which should not be included in the VF driver.

Fixes: 79e499829f3f ("net: enetc: add hw tc hw offload features for PSPF capability")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220916133209.3351399-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/enetc/enetc.h
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_qos.c
drivers/net/ethernet/freescale/enetc/enetc_vf.c