aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-07-23 11:54:48 +0200
committerNeale Ranns <nranns@cisco.com>2019-07-28 14:20:06 +0000
commit22e9cfd760be613f33a4135e9247729b64619cc6 (patch)
tree81c6c66f0729202b71fa9b7748b405f4489f3f5a /src/vat
parentbe83704c5b1482dfd2ba38423662a9da5a8d8f81 (diff)
pg: add GSO support
Type: feature Change-Id: I72676495a85fbecc946aa266a75234cce70c3a5e Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r--src/vat/api_format.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 69a57ab3d33..a1cd9fee527 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -19749,12 +19749,24 @@ api_pg_create_interface (vat_main_t * vam)
unformat_input_t *input = vam->input;
vl_api_pg_create_interface_t *mp;
- u32 if_id = ~0;
+ u32 if_id = ~0, gso_size = 0;
+ u8 gso_enabled = 0;
int ret;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "if_id %d", &if_id))
;
+ else if (unformat (input, "gso-enabled"))
+ {
+ gso_enabled = 1;
+ if (unformat (input, "gso-size %u", &gso_size))
+ ;
+ else
+ {
+ errmsg ("missing gso-size");
+ return -99;
+ }
+ }
else
break;
}
@@ -19768,6 +19780,7 @@ api_pg_create_interface (vat_main_t * vam)
M (PG_CREATE_INTERFACE, mp);
mp->context = 0;
mp->interface_id = ntohl (if_id);
+ mp->gso_enabled = gso_enabled;
S (mp);
W (ret);
@@ -22324,7 +22337,7 @@ _(ipfix_classify_table_dump, "") \
_(sw_interface_span_enable_disable, "[l2] [src <intfc> | src_sw_if_index <id>] [disable | [[dst <intfc> | dst_sw_if_index <id>] [both|rx|tx]]]") \
_(sw_interface_span_dump, "[l2]") \
_(get_next_index, "node-name <node-name> next-node-name <node-name>") \
-_(pg_create_interface, "if_id <nn>") \
+_(pg_create_interface, "if_id <nn> [gso-enabled gso-size <size>]") \
_(pg_capture, "if_id <nnn> pcap <file_name> count <nnn> [disable]") \
_(pg_enable_disable, "[stream <id>] disable") \
_(ip_source_and_port_range_check_add_del, \