mirror_ubuntu-kernels/drivers/net/ethernet/microchip/sparx5
Daniel Machon cdd2883310 net: microchip: sparx5: fix deletion of existing DSCP mappings
Fix deletion of existing DSCP mappings in the APP table.

Adding and deleting DSCP entries are replicated per-port, since the
mapping table is global for all ports in the chip. Whenever a mapping
for a DSCP value already exists, the old mapping is deleted first.
However, it is only deleted for the specified port. Fix this by calling
sparx5_dcb_ieee_delapp() instead of dcb_ieee_delapp() as it ought to be.

Reproduce:

// Map and remap DSCP value 63
$ dcb app add dev eth0 dscp-prio 63:1
$ dcb app add dev eth0 dscp-prio 63:2

$ dcb app show dev eth0 dscp-prio
dscp-prio 63:2

$ dcb app show dev eth1 dscp-prio
dscp-prio 63:1 63:2 <-- 63:1 should not be there

Fixes: 8dcf69a641 ("net: microchip: sparx5: add support for offloading dscp table")
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-03-08 13:07:59 +00:00
..
Kconfig net: microchip: sparx5: add support for offloading pcp table 2022-11-03 15:16:50 +01:00
Makefile net: microchip: sparx5: add support for PSFP flow-meters 2023-02-06 08:26:25 +00:00
sparx5_calendar.c net: sparx5: add calendar bandwidth allocation support 2021-06-24 11:28:13 -07:00
sparx5_dcb.c net: microchip: sparx5: fix deletion of existing DSCP mappings 2023-03-08 13:07:59 +00:00
sparx5_ethtool.c net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() 2022-11-16 09:10:29 +00:00
sparx5_fdma.c net: microchip: sparx5: correctly free skb in xmit 2022-12-05 11:33:09 +00:00
sparx5_mactable.c net: sparx5: fix function return type to match actual type 2022-09-08 15:00:56 +02:00
sparx5_main_regs.h net: microchip: sparx5: Updated register interface with VCAP ES0 access 2023-02-16 08:59:48 +01:00
sparx5_main.c net: microchip: sparx5: Add ES0 VCAP keyset configuration for Sparx5 2023-02-16 08:59:49 +01:00
sparx5_main.h net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_netdev.c net: sparx5: fix error handling in sparx5_port_open() 2022-11-22 11:41:49 +01:00
sparx5_packet.c net: microchip: sparx5: correctly free skb in xmit 2022-12-05 11:33:09 +00:00
sparx5_pgid.c net: sparx5: Refactor mdb handling according to feedback 2022-03-25 15:45:14 -07:00
sparx5_phylink.c net: remove explicit phylink_generic_validate() references 2022-11-07 17:54:57 -08:00
sparx5_police.c net: microchip: sparx5: add support for service policers 2023-02-06 08:26:25 +00:00
sparx5_pool.c net: microchip: sparx5: add resource pools 2023-02-06 08:26:25 +00:00
sparx5_port.c net: microchip: sparx5: Discard frames with SMAC multicast addresses 2023-02-16 08:59:48 +01:00
sparx5_port.h net: microchip: sparx5: add support for DSCP rewrite 2023-01-20 09:33:22 +00:00
sparx5_psfp.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_ptp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-02-09 12:25:40 -08:00
sparx5_qos.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_qos.h net: microchip: sparx5: add support for offloading ets qdisc 2022-09-23 09:53:10 +01:00
sparx5_sdlb.c net: microchip: sparx5: add support for Service Dual Leacky Buckets 2023-02-06 08:26:25 +00:00
sparx5_switchdev.c net: sparx5: add support for mrouter ports 2022-08-29 12:57:38 +01:00
sparx5_tc_flower.c net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_tc_matchall.c net: microchip: vcap api: Use src and dst chain id to chain VCAP lookups 2023-01-16 13:45:17 +00:00
sparx5_tc.c net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
sparx5_tc.h net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_vcap_ag_api.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
sparx5_vcap_ag_api.h net: microchip: sparx5: Adding IS2 VCAP model to VCAP API 2022-10-24 10:37:42 +01:00
sparx5_vcap_debugfs.c net: microchip: sparx5: Add ES0 VCAP keyset configuration for Sparx5 2023-02-16 08:59:49 +01:00
sparx5_vcap_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
sparx5_vcap_impl.c net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_vcap_impl.h net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_vlan.c net: microchip: sparx5: Egress VLAN TPID configuration follows IFH 2023-02-16 08:59:48 +01:00