aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/gso
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2020-01-16 09:57:22 -0800
committerSteven Luong <sluong@cisco.com>2020-01-16 10:01:22 -0800
commita420c5e6c163b09eaa12ee352b0757a10cd86f3e (patch)
tree227e724261492581983f58eea31e5ec6ff740a73 /src/vnet/gso
parent6e20e03565a225d44bd92179ed5874aec347471a (diff)
gso: fix typo in the quad-loop
Fix minor typo in the quad-loop for swif which may actually causes problem if swif0 != swif1 or swif2 or swif3. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Ib81f323479c7ecbd28d84956cffbc20b1072d2c2
Diffstat (limited to 'src/vnet/gso')
-rw-r--r--src/vnet/gso/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/gso/node.c b/src/vnet/gso/node.c
index a48a8b69a23..b3125fee4c2 100644
--- a/src/vnet/gso/node.c
+++ b/src/vnet/gso/node.c
@@ -346,21 +346,21 @@ vnet_gso_node_inline (vlib_main_t * vm,
}
if (PREDICT_FALSE (hi->sw_if_index != swif1))
{
- hi1 = vnet_get_sup_hw_interface (vnm, swif0);
+ hi1 = vnet_get_sup_hw_interface (vnm, swif1);
if (!(hi1->flags & VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO) &&
(b[1]->flags & VNET_BUFFER_F_GSO))
break;
}
if (PREDICT_FALSE (hi->sw_if_index != swif2))
{
- hi2 = vnet_get_sup_hw_interface (vnm, swif0);
+ hi2 = vnet_get_sup_hw_interface (vnm, swif2);
if ((hi2->flags & VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO) == 0 &&
(b[2]->flags & VNET_BUFFER_F_GSO))
break;
}
if (PREDICT_FALSE (hi->sw_if_index != swif3))
{
- hi3 = vnet_get_sup_hw_interface (vnm, swif0);
+ hi3 = vnet_get_sup_hw_interface (vnm, swif3);
if (!(hi3->flags & VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO) &&
(b[3]->flags & VNET_BUFFER_F_GSO))
break;