OSDN Git Service

IB/mlx5: Add ability to hash by IPSEC_SPI when creating a TIR
authorMatan Barak <matanb@mellanox.com>
Wed, 28 Mar 2018 06:27:55 +0000 (09:27 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Apr 2018 18:06:28 +0000 (12:06 -0600)
commit2d93fc856959bb940b3cf1e7cbad38721d6bea75
tree78cbf6275d037224778eb6ee6256e52bd30982e1
parentc03faa562d0279e463900c92d4a54c0dc3c806b0
IB/mlx5: Add ability to hash by IPSEC_SPI when creating a TIR

When a Raw Ethernet QP is created, we actually create a few objects.
One of these objects is a TIR. Currently, a TIR could hash (and spread
the traffic) by IP or port only. Adding a hashing by IPSec SPI to TIR
creation with the required UAPI bit.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h