|
|
23f80e |
From b17bf50a8542a77be1fab3713f7bfc0e57a9787a Mon Sep 17 00:00:00 2001
|
|
|
23f80e |
From: Noa Osherovich <noaos@mellanox.com>
|
|
|
23f80e |
Date: Mon, 5 Dec 2016 14:13:24 +0200
|
|
|
23f80e |
Subject: [PATCH rdma-core 6/6] ibverbs: Add support for scatter FCS ability in
|
|
|
23f80e |
WQ
|
|
|
23f80e |
|
|
|
23f80e |
Enable the user to create a workqueue object with the scatter FCS
|
|
|
23f80e |
offload.
|
|
|
23f80e |
If this option is set, the FCS (Frame Check Sequence) field of an
|
|
|
23f80e |
incoming raw Ethernet packet will be scattered into host memory along
|
|
|
23f80e |
the packet payload as it appeared on the wire.
|
|
|
23f80e |
|
|
|
23f80e |
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
|
|
|
23f80e |
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
|
|
|
23f80e |
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
|
|
|
23f80e |
---
|
|
|
23f80e |
libibverbs/man/ibv_create_wq.3 | 3 ++-
|
|
|
23f80e |
libibverbs/verbs.h | 5 +++--
|
|
|
23f80e |
2 files changed, 5 insertions(+), 3 deletions(-)
|
|
|
23f80e |
|
|
|
23f80e |
diff --git a/libibverbs/man/ibv_create_wq.3 b/libibverbs/man/ibv_create_wq.3
|
|
|
23f80e |
index 9a541fea..4a8b83c5 100644
|
|
|
23f80e |
--- a/libibverbs/man/ibv_create_wq.3
|
|
|
23f80e |
+++ b/libibverbs/man/ibv_create_wq.3
|
|
|
23f80e |
@@ -40,7 +40,8 @@ uint32_t create_flags /* Creation flags for this WQ, use en
|
|
|
23f80e |
enum ibv_wq_flags {
|
|
|
23f80e |
.in +8
|
|
|
23f80e |
IBV_WQ_FLAGS_CVLAN_STRIPPING = 1 << 0, /* CVLAN field will be stripped from incoming packets */
|
|
|
23f80e |
-IBV_WQ_FLAGS_RESERVED = 1 << 1,
|
|
|
23f80e |
+IBV_WQ_FLAGS_SCATTER_FCS = 1 << 1, /* FCS field will be scattered to host memory */
|
|
|
23f80e |
+IBV_WQ_FLAGS_RESERVED = 1 << 2,
|
|
|
23f80e |
.in -8
|
|
|
23f80e |
};
|
|
|
23f80e |
.nf
|
|
|
23f80e |
diff --git a/libibverbs/verbs.h b/libibverbs/verbs.h
|
|
|
23f80e |
index 15e93b3e..3f5e9fe3 100644
|
|
|
23f80e |
--- a/libibverbs/verbs.h
|
|
|
23f80e |
+++ b/libibverbs/verbs.h
|
|
|
23f80e |
@@ -675,7 +675,8 @@ enum ibv_wq_init_attr_mask {
|
|
|
23f80e |
|
|
|
23f80e |
enum ibv_wq_flags {
|
|
|
23f80e |
IBV_WQ_FLAGS_CVLAN_STRIPPING = 1 << 0,
|
|
|
23f80e |
- IBV_WQ_FLAGS_RESERVED = 1 << 1,
|
|
|
23f80e |
+ IBV_WQ_FLAGS_SCATTER_FCS = 1 << 1,
|
|
|
23f80e |
+ IBV_WQ_FLAGS_RESERVED = 1 << 2,
|
|
|
23f80e |
};
|
|
|
23f80e |
|
|
|
23f80e |
struct ibv_wq_init_attr {
|
|
|
23f80e |
@@ -685,7 +686,7 @@ struct ibv_wq_init_attr {
|
|
|
23f80e |
uint32_t max_sge;
|
|
|
23f80e |
struct ibv_pd *pd;
|
|
|
23f80e |
struct ibv_cq *cq;
|
|
|
23f80e |
- uint32_t comp_mask;
|
|
|
23f80e |
+ uint32_t comp_mask; /* Use ibv_wq_init_attr_mask */
|
|
|
23f80e |
uint32_t create_flags; /* use ibv_wq_flags */
|
|
|
23f80e |
};
|
|
|
23f80e |
|
|
|
23f80e |
--
|
|
|
23f80e |
2.12.1
|
|
|
23f80e |
|