diff options
author | Steven Luong <sluong@cisco.com> | 2020-09-15 09:48:38 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-09-16 16:54:20 +0000 |
commit | 007abe751f2ee86528d0ccc005a3da1c90850868 (patch) | |
tree | 2c95fa65ff7ae47f0d1f56905873a4df7a445f89 /src/plugins/vmxnet3/vmxnet3.c | |
parent | cc7c88e529eb3a2ca0934f27eb048c8ca3788f95 (diff) |
vmxnet3: gso fixes
outbound:
wrong header len computation
gso size and header length need to be set in the first segment of the
chain
inbound:
EOP may have zero length descriptor to terminate the chain
missing endian conversion for ethertype
Type: fix
Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Iaa003c0e9af3ead4df6c6c0d5772a179d2ff15c4
Diffstat (limited to 'src/plugins/vmxnet3/vmxnet3.c')
-rw-r--r-- | src/plugins/vmxnet3/vmxnet3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3.c b/src/plugins/vmxnet3/vmxnet3.c index 731a34a99e1..9209c3e2f90 100644 --- a/src/plugins/vmxnet3/vmxnet3.c +++ b/src/plugins/vmxnet3/vmxnet3.c @@ -809,7 +809,8 @@ vmxnet3_create_if (vlib_main_t * vm, vmxnet3_create_if_args_t * args) vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, vd->hw_if_index); hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_INT_MODE; if (vd->gso_enable) - hw->flags |= VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO; + hw->flags |= (VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO | + VNET_HW_INTERFACE_FLAG_SUPPORTS_TX_L4_CKSUM_OFFLOAD); vnet_hw_interface_set_input_node (vnm, vd->hw_if_index, vmxnet3_input_node.index); |