]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Support setting Ethernet priority for Raw Packet QPs
authormajd@mellanox.com <majd@mellanox.com>
Thu, 14 Jan 2016 17:13:06 +0000 (19:13 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 21 Jan 2016 17:01:09 +0000 (12:01 -0500)
commitdd4a77d8d3c31b0bb27f6739af636a7506a78031
tree8d1c05ec399476944375f0379d56815ae7ef71e9
parent874516aa52c1ef561a5b0a4ef805212e48a598ad
IB/mlx5: Support setting Ethernet priority for Raw Packet QPs

When the user changes the Address Vector(AV) in the modify QP, he
provides an SL. This SL should be translated to Ethernet Priority
by taking the 3 LSB bits, and modify the QP's TIS according to this
Ethernet priority.

Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c
drivers/net/ethernet/mellanox/mlx5/core/transobj.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/transobj.h