Skip to content

Commit bcf3a15

Browse files
sylwesterdziedziuchanguy11
authored andcommitted
i40e: Fix incorrect address type for IPv6 flow rules
It was not possible to create 1-tuple flow director rule for IPv6 flow type. It was caused by incorrectly checking for source IP address when validating user provided destination IP address. Fix this by changing ip6src to correct ip6dst address in destination IP address validation for IPv6 flow type. Fixes: efca91e ("i40e: Add flow director support for IPv6") Signed-off-by: Sylwester Dziedziuch <[email protected]> Tested-by: Gurucharan <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent 25d7a5f commit bcf3a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40e/i40e_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4485,7 +4485,7 @@ static int i40e_check_fdir_input_set(struct i40e_vsi *vsi,
44854485
(struct in6_addr *)&ipv6_full_mask))
44864486
new_mask |= I40E_L3_V6_DST_MASK;
44874487
else if (ipv6_addr_any((struct in6_addr *)
4488-
&usr_ip6_spec->ip6src))
4488+
&usr_ip6_spec->ip6dst))
44894489
new_mask &= ~I40E_L3_V6_DST_MASK;
44904490
else
44914491
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)