1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/engleder
Vladimir Oltean 2d800bc500 net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum
Inspired from struct flow_cls_offload :: cmd, in order for taprio to be
able to report statistics (which is future work), it seems that we need
to drill one step further with the ndo_setup_tc(TC_SETUP_QDISC_TAPRIO)
multiplexing, and pass the command as part of the common portion of the
muxed structure.

Since we already have an "enable" variable in tc_taprio_qopt_offload,
refactor all drivers to check for "cmd" instead of "enable", and reject
every other command except "replace" and "destroy" - to be future proof.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> # for lan966x
Acked-by: Kurt Kanzenbach <kurt@linutronix.de> # hellcreek
Reviewed-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-31 10:00:30 +01:00
..
Kconfig tsnep: Use page pool for RX 2022-09-30 11:32:27 +01:00
Makefile tsnep: Support XDP BPF program setup 2023-01-18 13:17:06 +00:00
tsnep.h tsnep: Add XDP socket zero-copy TX support 2023-04-24 18:22:38 -07:00
tsnep_ethtool.c tsnep: Rework RX buffer allocation 2022-12-02 10:47:49 +00:00
tsnep_hw.h tsnep: Throttle interrupts 2022-12-02 10:47:49 +00:00
tsnep_main.c tsnep: Add XDP socket zero-copy TX support 2023-04-24 18:22:38 -07:00
tsnep_ptp.c tsnep: Add free running cycle counter support 2022-05-10 09:48:09 +02:00
tsnep_rxnfc.c tsnep: Add EtherType RX flow classification support 2022-09-30 11:32:27 +01:00
tsnep_selftests.c net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum 2023-05-31 10:00:30 +01:00
tsnep_tc.c net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum 2023-05-31 10:00:30 +01:00
tsnep_xdp.c tsnep: Add XDP socket zero-copy RX support 2023-04-24 18:22:38 -07:00