OSDN Git Service

IB/mlx4: Add support to RSS hash for inner headers
authorGuy Levi <guyle@mellanox.com>
Sun, 24 Dec 2017 12:51:24 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Dec 2017 18:33:14 +0000 (11:33 -0700)
commit07d84f7b6adf3ea0d9f8c2bbee412a2a7aaa83e5
treedaf01e5fe7b8125ddab39ec44bb2020086bcf0ad
parent76a895d9e1332ca3cfa3edff3dc04420dfd7d603
IB/mlx4: Add support to RSS hash for inner headers

Support RSS hash for inner headers according to a new flag,
MLX4_IB_RX_HASH_INNER provided by the vendor channel.

In case the flag is set, RSS hash will be done on the inner headers of
VXLAN packets (which are encapsulated).
Non-encapsulated packets will be hashed according to the outer headers.

Signed-off-by: Guy Levi <guyle@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c
include/uapi/rdma/mlx4-abi.h