aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-03-30 14:34:44 +0200
committerMatthew Smith <mgsmith@netgate.com>2021-03-30 14:44:27 +0000
commit4f81d447bcaab7e7642437f0e8f15eaab0e9f6d3 (patch)
tree46f20492d538afd97af13a8f89e8afdf68bf5248 /src
parent3daca3f9f40d1e8c421b6905252f511e7c4e7bdd (diff)
interface: fix coverity
Type: fix Change-Id: Ia7652fe8e8c20f4f7a019ab7ca0649c2180c7e90 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/interface_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/interface_output.c b/src/vnet/interface_output.c
index 17df29e05c7..fb322604eda 100644
--- a/src/vnet/interface_output.c
+++ b/src/vnet/interface_output.c
@@ -416,10 +416,10 @@ VLIB_NODE_FN (vnet_interface_output_node)
if (do_tx_offloads == 0 && arc_or_subif == 0)
n_bytes = vnet_interface_output_node_inline (
vm, sw_if_index, ccm, bufs, config_index, arc, n_buffers, 0, 0);
- else if (arc_or_subif)
+ else if (do_tx_offloads == 0 && arc_or_subif == 1)
n_bytes = vnet_interface_output_node_inline (
vm, sw_if_index, ccm, bufs, config_index, arc, n_buffers, 0, 1);
- else if (do_tx_offloads)
+ else if (do_tx_offloads == 1 && arc_or_subif == 0)
n_bytes = vnet_interface_output_node_inline (
vm, sw_if_index, ccm, bufs, config_index, arc, n_buffers, 1, 0);
else