]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
IB/mlx5: Enable Eth VFs to query their min-inline value for user-space
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 30 Nov 2016 18:33:33 +0000 (20:33 +0200)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 1 Mar 2017 13:55:52 +0000 (06:55 -0700)
commita147f92049a74127d2d08362cb7626c714e763a3
treebd5e70dbe2e4b44b0e651fbf912fa2dfa986d90e
parent5d0e341390362a1da5ab97174239de4739aa64e2
IB/mlx5: Enable Eth VFs to query their min-inline value for user-space

BugLink: http://bugs.launchpad.net/bugs/1668019
For some mlx5 HW models (CX4, CX4Lx), the VF driver needs to put part
of the packet headers on the TX descriptor so the e-switch can do proper
matching and steering. This is called "min-inline", it's advertized to
the VF by the FW and also enforced on them by the HW, such that if they
don't obey, their packets are dropped.

SRIOV VF libmlx5 instances should take into account the min-inline
value of their vports. For that end, we provide this value through
the vendor response part of init_ucontext command.

The min inline value is reported in a way which will let newer libmlx5
instances realize that they are running over an older kernel and act
accordingly (e.g apply some educated guess).

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
(cherry picked from commit 7898489880f55a9c3a954cd5660a0fb4fd81b625)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/infiniband/hw/mlx5/main.c
include/uapi/rdma/mlx5-abi.h