summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/af_packet/af_packet.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-04-05 12:03:47 +0000
committerBeno�t Ganne <bganne@cisco.com>2022-04-06 11:42:08 +0000
commit2b6479c07ed67940e47a676f3386a2df21c16655 (patch)
tree7163e8b0930a2bcd1808c19ec88d919aef94be8a /src/vnet/devices/af_packet/af_packet.h
parenteecec8ceba7dcd572ff557726e7e253488b13656 (diff)
devices: add cli support to disable qdisc bypass
Type: improvement Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Ie5f2bdb8fb559680bab863a7c24a49360e005b58
Diffstat (limited to 'src/vnet/devices/af_packet/af_packet.h')
-rw-r--r--src/vnet/devices/af_packet/af_packet.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/devices/af_packet/af_packet.h b/src/vnet/devices/af_packet/af_packet.h
index 1b24eef788c..2b051251455 100644
--- a/src/vnet/devices/af_packet/af_packet.h
+++ b/src/vnet/devices/af_packet/af_packet.h
@@ -32,6 +32,11 @@ typedef enum
AF_PACKET_IF_MODE_IP = 2
} af_packet_if_mode_t;
+typedef enum
+{
+ AF_PACKET_IF_FLAGS_QDISC_BYPASS = 1,
+} af_packet_if_flags_t;
+
typedef struct
{
u32 sw_if_index;
@@ -101,6 +106,7 @@ typedef struct
u32 dev_instance;
af_packet_ring_t *rings;
+ u8 is_qdisc_bypass_enabled;
} af_packet_if_t;
typedef struct
@@ -129,6 +135,7 @@ typedef struct
u8 num_rxqs;
u8 num_txqs;
af_packet_if_mode_t mode;
+ af_packet_if_flags_t flags;
/* return */
u32 sw_if_index;