summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/qpc.c
diff options
context:
space:
mode:
authorMark Zhang <markz@mellanox.com>2020-05-27 08:50:14 +0300
committerJason Gunthorpe <jgg@mellanox.com>2020-05-29 21:15:30 +0300
commit802dcc7fc5ec0932bea0f33db046cc744aecf233 (patch)
tree9972fc640ba39600eae02ec865cfbb38c735ef46 /drivers/infiniband/hw/mlx5/qpc.c
parente0cca8b456e2319804c9187f237268b14c50d323 (diff)
downloadlinux-802dcc7fc5ec0932bea0f33db046cc744aecf233.tar.xz
RDMA/mlx5: Support TX port affinity for VF drivers in LAG mode
The mlx5 VF driver doesn't set QP tx port affinity because it doesn't know if the lag is active or not, since the "lag_active" works only for PF interfaces. In this case for VF interfaces only one lag is used which brings performance issue. Add a lag_tx_port_affinity CAP bit; When it is enabled and "num_lag_ports > 1", then driver always set QP tx affinity, regardless of lag state. Link: https://lore.kernel.org/r/20200527055014.355093-1-leon@kernel.org Signed-off-by: Mark Zhang <markz@mellanox.com> Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/qpc.c')
0 files changed, 0 insertions, 0 deletions