diff mbox

[rdma-core,07/11] verbs: Add ability to hash according to ipsec_spi

Message ID 1521655800-7287-8-git-send-email-yishaih@mellanox.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Yishai Hadas March 21, 2018, 6:09 p.m. UTC
From: Matan Barak <matanb@mellanox.com>

When incoming IPSEC_SPI packets arrive, sometimes it's useful to
spread the traffic (RSS) according to the SPI field. Adding the
required RSS flag bit for that.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
---
 libibverbs/man/ibv_create_qp_ex.3 | 1 +
 libibverbs/verbs.h                | 1 +
 2 files changed, 2 insertions(+)
diff mbox

Patch

diff --git a/libibverbs/man/ibv_create_qp_ex.3 b/libibverbs/man/ibv_create_qp_ex.3
index 3429a65..47e0d9e 100644
--- a/libibverbs/man/ibv_create_qp_ex.3
+++ b/libibverbs/man/ibv_create_qp_ex.3
@@ -84,6 +84,7 @@  IBV_RX_HASH_SRC_PORT_TCP        = 1 << 4,
 IBV_RX_HASH_DST_PORT_TCP        = 1 << 5,
 IBV_RX_HASH_SRC_PORT_UDP        = 1 << 6,
 IBV_RX_HASH_DST_PORT_UDP        = 1 << 7,
+IBV_RX_HASH_IPSEC_SPI           = 1 << 8,
 /* When using tunneling protocol, e.g. VXLAN, then we have an inner (encapsulated packet) and outer.
  * For applying RSS on the inner packet, then the following field should be set with one of the L3/L4 fields.
 */
diff --git a/libibverbs/verbs.h b/libibverbs/verbs.h
index 4e4a658..5bbc963 100644
--- a/libibverbs/verbs.h
+++ b/libibverbs/verbs.h
@@ -231,6 +231,7 @@  enum ibv_rx_hash_fields {
 	IBV_RX_HASH_DST_PORT_TCP	= 1 << 5,
 	IBV_RX_HASH_SRC_PORT_UDP	= 1 << 6,
 	IBV_RX_HASH_DST_PORT_UDP	= 1 << 7,
+	IBV_RX_HASH_IPSEC_SPI		= 1 << 8,
 	IBV_RX_HASH_INNER		= (1UL << 31),
 };