Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20dd9147 authored by Gustavo A R Silva's avatar Gustavo A R Silva Committed by Jeff Kirsher
Browse files

i40evf/i40evf_main: Fix variable assignment in i40evf_parse_cls_flower



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: 0075fa0f ("i40evf: Add support to apply cloud filters")
Signed-off-by: default avatarGustavo A R Silva <garsilva@embeddedor.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 1f71e2b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;