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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Matan Barak <matanb@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxxxx>
---
 libibverbs/man/ibv_create_qp_ex.3 | 1 +
 libibverbs/verbs.h                | 1 +
 2 files changed, 2 insertions(+)

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),
 };
 
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux