Skip to content

Commit

Permalink
i40evf/i40evf_main: Fix variable assignment in i40evf_parse_cls_flower
Browse files Browse the repository at this point in the history
It seems this is a copy-paste error and that the proper variable to use
in this particular case is _src_ instead of _dst_.

Addresses-Coverity-ID: 1465282 ("Copy-paste error")
Fixes: 0075fa0 ("i40evf: Add support to apply cloud filters")
Signed-off-by: Gustavo A R Silva <garsilva@embeddedor.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Gustavo A R Silva authored and Jeff Kirsher committed Mar 14, 2018
1 parent 1f71e2b commit 20dd914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/i40evf/i40evf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ static int i40evf_parse_cls_flower(struct i40evf_adapter *adapter,

if (key->src) {
vf->mask.tcp_spec.src_port |= cpu_to_be16(0xffff);
vf->data.tcp_spec.src_port = key->dst;
vf->data.tcp_spec.src_port = key->src;
}
}
vf->field_flags = field_flags;
Expand Down

0 comments on commit 20dd914

Please sign in to comment.