diff options
author | Artem Glazychev <artem.glazychev@xored.com> | 2023-06-01 11:18:13 +0700 |
---|---|---|
committer | Artem Glazychev <artem.glazychev@xored.com> | 2023-06-13 11:01:02 +0700 |
commit | 84fb83def4e1b219af7bea33610a53473c7a2f19 (patch) | |
tree | bf322a40a740f511bd54bc1c0f75d36ccccdfe6a /src/plugins/af_xdp | |
parent | 9a1fbb5244e7b45a22ddaaae61fe8621b846c58b (diff) |
af_xdp: set frame_no_append flag
Make sure the same frame is not used for multiple interfaces, otherwise it breaks the ETH_INPUT_FRAME_F_SINGLE_SW_IF_IDX promise.
Type: fix
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Change-Id: I02546259ceaea36f65cb9f78b9b3ee45ed4075c9
Diffstat (limited to 'src/plugins/af_xdp')
-rw-r--r-- | src/plugins/af_xdp/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/af_xdp/input.c b/src/plugins/af_xdp/input.c index 08b503b1641..a90cbf5d332 100644 --- a/src/plugins/af_xdp/input.c +++ b/src/plugins/af_xdp/input.c @@ -196,6 +196,7 @@ af_xdp_device_input_ethernet (vlib_main_t * vm, vlib_node_runtime_t * node, ef = vlib_frame_scalar_args (f); ef->sw_if_index = sw_if_index; ef->hw_if_index = hw_if_index; + vlib_frame_no_append (f); } static_always_inline u32 |