diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2022-09-08 17:21:20 +0000 |
---|---|---|
committer | Mohsin Kazmi <sykazmi@cisco.com> | 2022-10-21 16:32:56 +0000 |
commit | 8b90d89b05322ceaaf57e0eda403c4f92546f7b3 (patch) | |
tree | 7ee0ecc2128f41e3e2219489dff890430a36c385 /src/vnet/devices/af_packet/cli.c | |
parent | 65bff88c3671ec6ee561e70f17c60ea9784a39dd (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/cli.c')
-rw-r--r-- | src/vnet/devices/af_packet/cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/devices/af_packet/cli.c b/src/vnet/devices/af_packet/cli.c index e730659bfcd..d20ef61a09d 100644 --- a/src/vnet/devices/af_packet/cli.c +++ b/src/vnet/devices/af_packet/cli.c @@ -89,6 +89,8 @@ af_packet_create_command_fn (vlib_main_t * vm, unformat_input_t * input, arg->flags &= ~AF_PACKET_IF_FLAGS_CKSUM_GSO; else if (unformat (line_input, "mode ip")) arg->mode = AF_PACKET_IF_MODE_IP; + else if (unformat (line_input, "v2")) + arg->is_v2 = 1; else if (unformat (line_input, "hw-addr %U", unformat_ethernet_address, hwaddr)) arg->hw_addr = hwaddr; @@ -160,7 +162,7 @@ done: ?*/ VLIB_CLI_COMMAND (af_packet_create_command, static) = { .path = "create host-interface", - .short_help = "create host-interface name <ifname> [num-rx-queues <n>] " + .short_help = "create host-interface [v2] name <ifname> [num-rx-queues <n>] " "[num-tx-queues <n>] [hw-addr <mac-addr>] [mode ip] " "[qdisc-bypass-disable] [cksum-gso-disable]", .function = af_packet_create_command_fn, |