aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vmxnet3/vmxnet3_api.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-08-29 12:47:57 -0700
committerDamjan Marion <dmarion@me.com>2019-08-30 13:19:20 +0000
commit2985e0af6b48c7a5b57e442ead21b3620686b052 (patch)
treecc6a89526fdce244d70ce976360d482fbab7abad /src/plugins/vmxnet3/vmxnet3_api.c
parent90b34ed67a516c4391ad353ba431f8419b582d50 (diff)
vmxnet3: per interface gso support
gso option for vmxnet3 is per VPP process currently. There is no reason why we cannot provide per interface gso support. Type: feature Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Ife962b52221191050dedd18252b859880ccd7599
Diffstat (limited to 'src/plugins/vmxnet3/vmxnet3_api.c')
-rw-r--r--src/plugins/vmxnet3/vmxnet3_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3_api.c b/src/plugins/vmxnet3/vmxnet3_api.c
index 731a5d0b25f..c7f60ee723f 100644
--- a/src/plugins/vmxnet3/vmxnet3_api.c
+++ b/src/plugins/vmxnet3/vmxnet3_api.c
@@ -78,6 +78,7 @@ vl_api_vmxnet3_create_t_handler (vl_api_vmxnet3_create_t * mp)
args.txq_num = ntohs (mp->txq_num);
args.rxq_num = ntohs (mp->rxq_num);
args.bind = mp->bind;
+ args.enable_gso = mp->enable_gso;
vmxnet3_create_if (vm, &args);
rv = args.rv;
@@ -102,6 +103,8 @@ vl_api_vmxnet3_create_t_print (vl_api_vmxnet3_create_t * mp, void *handle)
s = format (s, "elog ");
if (mp->bind)
s = format (s, "bind ");
+ if (mp->enable_gso)
+ s = format (s, "gso ");
if (mp->rxq_size)
s = format (s, "rx-queue-size %u ", ntohs (mp->rxq_size));
if (mp->txq_size)