diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2018-08-27 10:50:50 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-08-30 10:10:45 +0000 |
commit | 149d0e2813c0777497f2e312a0e2a7eb0c07ac6c (patch) | |
tree | 6a2420f7227010226b1840fbb3e43795427a606f /src/plugins/avf/avf_test.c | |
parent | 3b23e9d5af4f02836b689286824c9217fa2aa19a (diff) |
avf: RSS support
Change-Id: I59b8f08789f0704d6768258348e938da67e5b15b
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/avf/avf_test.c')
-rw-r--r-- | src/plugins/avf/avf_test.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/plugins/avf/avf_test.c b/src/plugins/avf/avf_test.c index 7bcb1081179..fbb125cee9d 100644 --- a/src/plugins/avf/avf_test.c +++ b/src/plugins/avf/avf_test.c @@ -93,6 +93,7 @@ api_avf_create (vat_main_t * vam) unformat_input_t *i = vam->input; vl_api_avf_create_t *mp; avf_create_if_args_t args; + uint32_t tmp; int ret; u32 x[4]; @@ -109,10 +110,12 @@ api_avf_create (vat_main_t * vam) } else if (unformat (i, "elog")) args.enable_elog = 1; - else if (unformat (i, "rx-queue-size %u", &args.rxq_size)) - ; - else if (unformat (i, "tx-queue-size %u", &args.txq_size)) - ; + else if (unformat (i, "rx-queue-size %u", &tmp)) + args.rxq_size = tmp; + else if (unformat (i, "tx-queue-size %u", &tmp)) + args.txq_size = tmp; + else if (unformat (i, "num-rx-queues %u", &tmp)) + args.rxq_num = tmp; else { clib_warning ("unknown input '%U'", format_unformat_error, i); @@ -124,6 +127,7 @@ api_avf_create (vat_main_t * vam) mp->pci_addr = clib_host_to_net_u32 (args.addr.as_u32); mp->enable_elog = clib_host_to_net_u16 (args.enable_elog); + mp->rxq_num = clib_host_to_net_u16 (args.rxq_num); mp->rxq_size = clib_host_to_net_u16 (args.rxq_size); mp->txq_size = clib_host_to_net_u16 (args.txq_size); @@ -194,7 +198,7 @@ api_avf_delete (vat_main_t * vam) */ #define foreach_vpe_api_msg \ _(avf_create, "<pci-address> [rx-queue-size <size>] " \ - "[tx-queue-size <size>]") \ + "[tx-queue-size <size>] [num-rx-queues <size>]") \ _(avf_delete, "<sw_if_index>") static void |