Skip to contentSkip to conversation

net/enic: fix fdir UDP v4 source port mask

PATCH Applied John Daley 2 participants 2 messages Oct 18, 2016 – Oct 19, 2016 Network drivers

lore
Share & tools
lore

John Daley

author
#0 lore raw

PATCH 1/1 net/enic: fix fdir UDP v4 source port mask

This fixes issue found by Coverity where a typo caused the flow director UDP IPv4 source port mask to be assigned the destination port mask supplied by the caller.

Coverity issue: 137860

Fixes dfbd6a9cb504 ("net/enic: extend flow director support for 1300 series")
---
 drivers/net/enic/enic_clsf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/enic/enic_clsf.c +1 -1
index d2413d7..53a7977 100644
@@ -155,7 +155,7 @@ copy_fltr_v2(struct filter_v2 *fltr, struct rte_eth_fdir_input *input,
 			udp_val.src_port = input->flow.udp4_flow.src_port;
 		}
 		if (input->flow.udp4_flow.dst_port) {
-			udp_mask.src_port = masks->dst_port_mask;
+			udp_mask.dst_port = masks->dst_port_mask;
 			udp_val.dst_port = input->flow.udp4_flow.dst_port;
 		}
 
Signature · 1 line
2.10.0
#1 lore raw
Quoted 9 lines · John Daley

This fixes issue found by Coverity where a typo caused the flow director UDP IPv4 source port mask to be assigned the destination port mask supplied by the caller.

Coverity issue: 137860

Fixes dfbd6a9cb504 ("net/enic: extend flow director support for 1300 series")

Applied to dpdk-next-net/rel_16_11

/Bruce