diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2016-08-28 11:28:45 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 16:54:13 -0400 |
commit | 31f69a82b456e3ae9b5572961b4cc4ec971e9dc7 (patch) | |
tree | 733f377cf7a1edb12e6b25d4b0097e32a41027ea /drivers/infiniband/hw/mlx5/user.h | |
parent | IB/uverbs: Expose RSS related capabilities (diff) | |
download | linux-dev-31f69a82b456e3ae9b5572961b4cc4ec971e9dc7.tar.xz linux-dev-31f69a82b456e3ae9b5572961b4cc4ec971e9dc7.zip |
IB/mlx5: Expose RSS related capabilities
Expose RSS related capabilities on both IB and vendor channels.
In addition to the IB capabilities the driver reports some extra
capabilities on its vendor channel:
- Bit mask of the supported types of hash functions.
- Bit mask of the supported RX fields that can participate
in the RX hashing.
Those capabilities are applicable only when the link layer
is Ethernet.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/user.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/user.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/user.h b/drivers/infiniband/hw/mlx5/user.h index 188dac4301b5..0e49d5b30a4c 100644 --- a/drivers/infiniband/hw/mlx5/user.h +++ b/drivers/infiniband/hw/mlx5/user.h @@ -121,10 +121,17 @@ struct mlx5_ib_tso_caps { __u32 supported_qpts; }; +struct mlx5_ib_rss_caps { + __u64 rx_hash_fields_mask; /* enum mlx5_rx_hash_fields */ + __u8 rx_hash_function; /* enum mlx5_rx_hash_function_flags */ + __u8 reserved[7]; +}; + struct mlx5_ib_query_device_resp { __u32 comp_mask; __u32 response_length; struct mlx5_ib_tso_caps tso_caps; + struct mlx5_ib_rss_caps rss_caps; }; struct mlx5_ib_create_cq { |