summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/af_packet/af_packet.api
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-09-08 17:21:20 +0000
committerMohsin Kazmi <sykazmi@cisco.com>2022-10-21 16:32:56 +0000
commit8b90d89b05322ceaaf57e0eda403c4f92546f7b3 (patch)
tree7ee0ecc2128f41e3e2219489dff890430a36c385 /src/vnet/devices/af_packet/af_packet.api
parent65bff88c3671ec6ee561e70f17c60ea9784a39dd (diff)
devices: add support for af-packet v2
Type: feature Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I2ccaf1d512dcb72e414be8c69cbb538ebbe0e933
Diffstat (limited to 'src/vnet/devices/af_packet/af_packet.api')
-rw-r--r--src/vnet/devices/af_packet/af_packet.api1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/af_packet/af_packet.api b/src/vnet/devices/af_packet/af_packet.api
index 4a5cfb0fc3a..a12da37796a 100644
--- a/src/vnet/devices/af_packet/af_packet.api
+++ b/src/vnet/devices/af_packet/af_packet.api
@@ -94,6 +94,7 @@ enum af_packet_mode {
enum af_packet_flags {
AF_PACKET_API_FLAG_QDISC_BYPASS = 1, /* enable the qdisc bypass */
AF_PACKET_API_FLAG_CKSUM_GSO = 2, /* enable checksum/gso */
+ AF_PACKET_API_FLAG_VERSION_2 = 8 [backwards_compatible], /* af packet v2, default is v3 */
};
/** \brief Create host-interface