summaryrefslogtreecommitdiffstats
path: root/src/plugins/af_packet/af_packet.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-04-11 17:21:40 +0000
committerMohsin Kazmi <sykazmi@cisco.com>2023-12-15 18:09:45 +0000
commit69f800fbfd559c8db21d064ceeca5f81fb1f0021 (patch)
treed43057f7b27ab7ec5350a24adc0368f3544de916 /src/plugins/af_packet/af_packet.h
parent48744b9aa31f9bcf8caf13cc53261a21ca548336 (diff)
devices: add cli support to enable disable qdisc bypass
Type: improvement Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Ic124f44e64bd60f41e750b4118be3e8d1d1eb70b
Diffstat (limited to 'src/plugins/af_packet/af_packet.h')
-rw-r--r--src/plugins/af_packet/af_packet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/af_packet/af_packet.h b/src/plugins/af_packet/af_packet.h
index 7aa5e6d5b9a..8026c12bc6b 100644
--- a/src/plugins/af_packet/af_packet.h
+++ b/src/plugins/af_packet/af_packet.h
@@ -121,6 +121,7 @@ typedef struct
af_packet_ring_t *rings;
u8 is_qdisc_bypass_enabled;
u8 is_fanout_enabled;
+ int *fds;
} af_packet_if_t;
typedef struct
@@ -164,6 +165,7 @@ extern vlib_node_registration_t af_packet_input_node;
int af_packet_create_if (af_packet_create_if_arg_t *arg);
int af_packet_delete_if (u8 *host_if_name);
int af_packet_set_l4_cksum_offload (u32 sw_if_index, u8 set);
+int af_packet_enable_disable_qdisc_bypass (u32 sw_if_index, u8 enable_disable);
int af_packet_dump_ifs (af_packet_if_detail_t ** out_af_packet_ifs);
format_function_t format_af_packet_device_name;