]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: QPTS and QPDPM register firmware command support
authorHuy Nguyen <huyn@mellanox.com>
Tue, 18 Jul 2017 21:08:46 +0000 (16:08 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 5 Nov 2017 04:26:21 +0000 (21:26 -0700)
commit327adadc3b57504fbe1fbfa5f8064f1e22f5d168
tree8c72645e9ebdf569a384cb60540c54d329895afa
parent39a095cc977de4ce1e0ec9fc0fe9bba391ab7148
net/mlx5: QPTS and QPDPM register firmware command support

The QPTS register allows changing the priority trust state between pcp and
dscp. Add support to get/set trust state from device. When the port is
in pcp/dscp trust state, packet is routed by hardware to matching priority
based on its pcp/dscp value respectively.

The QPDPM register allow channing the dscp to priority mapping. Add support
to get/set dscp to priority mapping from device.
Note that to change a dscp mapping, the "e" bit of this dscp structure
must be set in the QPDPM firmware command.

Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/port.h