net: dcb: add helper functions to retrieve PCP and DSCP rewrite maps
authorDaniel Machon <daniel.machon@microchip.com>
Wed, 18 Jan 2023 21:08:28 +0000 (22:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2023 09:33:22 +0000 (09:33 +0000)
commit1df99338e6d4e96178b68b3e17bab33e9f1eb628
tree74313469f6b023a1a73f149587928e8ba493fff4
parent622f1b2fae2eea28a80b04f130e3bb54227699f8
net: dcb: add helper functions to retrieve PCP and DSCP rewrite maps

Add two new helper functions to retrieve a mapping of priority to PCP
and DSCP bitmasks, where each bitmap contains ones in positions that
match a rewrite entry.

dcb_ieee_getrewr_prio_dscp_mask_map() reuses the dcb_ieee_app_prio_map,
as this struct is already used for a similar mapping in the app table.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dcbnl.h
net/dcb/dcbnl.c