aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_octeon/rx_node.c
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-02-14 16:18:24 +0530
committerDamjan Marion <damarion@cisco.com>2024-02-28 15:35:52 +0100
commit3d1459b142d16a74a79576ed4c18f8c1ac14ed47 (patch)
treea93ceb00a114141b9ab317625a2c473405485199 /src/plugins/dev_octeon/rx_node.c
parent7f050d9749bbf16c0d16625d52d94e0811f284c7 (diff)
octeon: add flow offload infra
Type: feature Change-Id: I3485e1627eafc5125255985003573247e7562db2 Signed-off-by: Kommula Shiva Shankar <kshankar@marvell.com> Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
Diffstat (limited to 'src/plugins/dev_octeon/rx_node.c')
-rw-r--r--src/plugins/dev_octeon/rx_node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/dev_octeon/rx_node.c b/src/plugins/dev_octeon/rx_node.c
index c1c4771795e..5f7e5a8469b 100644
--- a/src/plugins/dev_octeon/rx_node.c
+++ b/src/plugins/dev_octeon/rx_node.c
@@ -131,6 +131,10 @@ oct_rx_batch (vlib_main_t *vm, oct_rx_node_ctx_t *ctx,
ctx->n_rx_bytes += b[1]->current_length = d[1].sg0.seg1_size;
ctx->n_rx_bytes += b[2]->current_length = d[2].sg0.seg1_size;
ctx->n_rx_bytes += b[3]->current_length = d[3].sg0.seg1_size;
+ b[0]->flow_id = d[0].parse.w[3] >> 48;
+ b[1]->flow_id = d[1].parse.w[3] >> 48;
+ b[2]->flow_id = d[2].parse.w[3] >> 48;
+ b[3]->flow_id = d[3].parse.w[3] >> 48;
ctx->n_segs += 4;
segs = d[0].sg0.segs + d[1].sg0.segs + d[2].sg0.segs + d[3].sg0.segs;
@@ -149,6 +153,7 @@ oct_rx_batch (vlib_main_t *vm, oct_rx_node_ctx_t *ctx,
ctx->to_next[0] = vlib_get_buffer_index (vm, b[0]);
b[0]->template = bt;
ctx->n_rx_bytes += b[0]->current_length = d[0].sg0.seg1_size;
+ b[0]->flow_id = d[0].parse.w[3] >> 48;
ctx->n_segs += 1;
if (d[0].sg0.segs > 1)
oct_rx_attach_tail (vm, ctx, b[0], d + 0);