diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2021-06-17 17:29:27 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-09-16 10:43:56 +0000 |
commit | 4fd9f10c4535724fd52b05d703fb56a33edc1138 (patch) | |
tree | c116ed9e18d6143701a449af2aab963a10a54dce /src/vnet/gso | |
parent | 64dd1720e5fd6f0cd9b029a5bc312e7264ac7d24 (diff) |
vxlan: improve to use the hardware offload
Type: improvement
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: Ic0fa4f83048a280a7d1b04198c0f903798562d2d
Diffstat (limited to 'src/vnet/gso')
-rw-r--r-- | src/vnet/gso/node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/gso/node.c b/src/vnet/gso/node.c index 5e793a5cffd..037f800afdf 100644 --- a/src/vnet/gso/node.c +++ b/src/vnet/gso/node.c @@ -799,7 +799,8 @@ vnet_gso_inline (vlib_main_t * vm, hi = vnet_get_sup_hw_interface (vnm, vnet_buffer (b)->sw_if_index[VLIB_TX]); - if (hi->caps & VNET_HW_INTERFACE_CAP_SUPPORTS_TCP_GSO) + if (hi->caps & (VNET_HW_INTERFACE_CAP_SUPPORTS_TCP_GSO | + VNET_HW_INTERFACE_CAP_SUPPORTS_VXLAN_TNL_GSO)) return vnet_gso_node_inline (vm, node, frame, vnm, hi, is_l2, is_ip4, is_ip6, /* do_segmentation */ 0); |