From: John Daley Date: Tue, 18 Oct 2016 05:17:08 +0000 (-0700) Subject: net/enic: fix UDP port in flow director X-Git-Tag: spdx-start~5472 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7832fe9819ef72fa7b6883dd4b0dad758fc8a430;p=dpdk.git net/enic: fix UDP port in flow director 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") Signed-off-by: John Daley --- diff --git a/drivers/net/enic/enic_clsf.c b/drivers/net/enic/enic_clsf.c index 85ae5ecf51..bcf479ac1b 100644 --- a/drivers/net/enic/enic_clsf.c +++ b/drivers/net/enic/enic_clsf.c @@ -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; }