summaryrefslogtreecommitdiffstats
path: root/src/vat/api_format.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-08-26 11:07:48 +0200
committerMohsin Kazmi <sykazmi@cisco.com>2020-09-02 08:48:58 +0000
commit50bd16559933576ed632eff8757d5954e93e99ce (patch)
tree959bc4b4af435479f9123a7e06449b6a2d840cb3 /src/vat/api_format.c
parent1b6ed022e7a37fd1b35f2f9272cc4abc159d616d (diff)
tap: add virtio 1.1 API flag
Type: feature Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I3e00deb94943c545d1649865b2efdf7d51b90f4d
Diffstat (limited to 'src/vat/api_format.c')
-rw-r--r--src/vat/api_format.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index fcf0b60ac71..c9e0b62c530 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -7390,6 +7390,10 @@ api_tap_create_v2 (vat_main_t * vam)
tap_flags |= TAP_API_FLAG_TUN;
else if (unformat (i, "gro-coalesce"))
tap_flags |= TAP_API_FLAG_GRO_COALESCE;
+ else if (unformat (i, "packed"))
+ tap_flags |= TAP_API_FLAG_PACKED;
+ else if (unformat (i, "in-order"))
+ tap_flags |= TAP_API_FLAG_IN_ORDER;
else
break;
}
@@ -20659,7 +20663,7 @@ _(l2_flags, \
_(bridge_flags, \
"bd_id <bridge-domain-id> [learn] [forward] [uu-flood] [flood] [arp-term] [disable]\n") \
_(tap_create_v2, \
- "id <num> [hw-addr <mac-addr>] [host-if-name <name>] [host-ns <name>] [num-rx-queues <num>] [rx-ring-size <num>] [tx-ring-size <num>] [host-bridge <name>] [host-mac-addr <mac-addr>] [host-ip4-addr <ip4addr/mask>] [host-ip6-addr <ip6addr/mask>] [host-mtu-size <mtu>] [gso | no-gso | csum-offload | gro-coalesce] [persist] [attach] [tun]") \
+ "id <num> [hw-addr <mac-addr>] [host-if-name <name>] [host-ns <name>] [num-rx-queues <num>] [rx-ring-size <num>] [tx-ring-size <num>] [host-bridge <name>] [host-mac-addr <mac-addr>] [host-ip4-addr <ip4addr/mask>] [host-ip6-addr <ip6addr/mask>] [host-mtu-size <mtu>] [gso | no-gso | csum-offload | gro-coalesce] [persist] [attach] [tun] [packed] [in-order]") \
_(tap_delete_v2, \
"<vpp-if-name> | sw_if_index <id>") \
_(sw_interface_tap_v2_dump, "") \