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: 8dcf69a64118 ("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
..
2023-02-02 20:48:23 -08:00
2023-02-06 22:33:18 -08:00
2023-02-10 17:51:27 -08:00
2023-02-02 20:48:23 -08:00
2023-02-21 18:24:12 -08:00
2023-02-10 17:51:27 -08:00
2023-02-24 17:22:11 -08:00
2023-02-06 10:03:26 +00:00
2023-02-10 17:51:27 -08:00
2022-10-18 19:33:51 -07:00
2023-02-23 09:58:51 -08:00