[PATCH net v2 0/2] net: stmmac: restore previous state if tc_setup_dwmac510_mqprio() fails

Lorenzo Bianconi posted 2 patches 2 weeks, 2 days ago
drivers/net/ethernet/stmicro/stmmac/hwif.h      |  2 +-
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 97 +++++++++++++++++--------
2 files changed, 69 insertions(+), 30 deletions(-)
[PATCH net v2 0/2] net: stmmac: restore previous state if tc_setup_dwmac510_mqprio() fails
Posted by Lorenzo Bianconi 2 weeks, 2 days ago
Restore previous mqprio qdisc configuration if
tc_setup_dwmac510_mqprio() fails running the following configuration:

  $tc qdisc add dev eth0 root handle 1: mqprio queues 4@0 4@4
  $tc qdisc replace dev eth0 root handle 2: mqprio queues 2@0 2@2 fp E P

Propagate FPE preemption-class mapping errors in
tc_setup_dwmac510_mqprio() and tc_taprio_configure().

---
Changes in v2:
- Move stmmac_fpe_map_preemption_class macro definition in a dedicated
  patch.
- Improve commit message providing a configuration example.
- Link to v1: https://lore.kernel.org/r/20260903-stmmac-tc_setup_dwmac510_mqprio-error-path-v1-1-eb171bdd340a@oss.qualcomm.com

---
Lorenzo Bianconi (2):
      net: stmmac: propagate FPE preemption-class mapping errors
      net: stmmac: preserve real_num_tx_queues on mqprio setup failure

 drivers/net/ethernet/stmicro/stmmac/hwif.h      |  2 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 97 +++++++++++++++++--------
 2 files changed, 69 insertions(+), 30 deletions(-)
---
base-commit: 382a373d9ea7a6ac4de9c022385b6217f65ae3cc
change-id: 20260903-stmmac-tc_setup_dwmac510_mqprio-error-path-8d472a43d3f2

Best regards,
-- 
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>