]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: add rdpm register
authorYuval Mintz <yuvalm@mellanox.com>
Sun, 14 Jan 2018 11:33:13 +0000 (12:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Jan 2018 17:21:11 +0000 (12:21 -0500)
commitc2eddcbd5343e08eccd7a0bddbaa7fbc85e829b7
tree198b83a3c814e6eac5fe7bf33b585cbc65aaf01d
parent00c0a5dfaf3b2b068746d3fa0eaa3c4504da2a19
mlxsw: reg: add rdpm register

Add rdpm definition - router DSCP to priority mapping register.
This register will be utilized later to align the default mapping between
packet DSCP and switch-priority to the kernel's mapping between
packet priority and skb priority.

This is the first non-bit indexed register where the entries are arranged
in descending order, i.e., entry at offset 0 matches configuration for
dscp[63]. As a result, the item's step is converted into a signed variable
to support descending arrays [where step would be negative].

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/item.h
drivers/net/ethernet/mellanox/mlxsw/reg.h