[PATCH net-next v2 4/6] net: dcb: add helper functions to retrieve PCP and DSCP rewrite maps

Petr Machata petrm at nvidia.com
Wed Jan 18 03:01:33 PST 2023


Daniel Machon <daniel.machon at microchip.com> writes:

> 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 at microchip.com>

Reviewed-by: Petr Machata <petrm at nvidia.com>



More information about the linux-arm-kernel mailing list