Skip to content
Commit 5ba2b936 authored by Piotr Gardocki's avatar Piotr Gardocki Committed by Greg Kroah-Hartman
Browse files

iavf: fix FDIR rule fields masks validation

[ Upstream commit 751969e5 ]

Return an error if a field's mask is neither full nor empty. When a mask
is only partial the field is not being used for rule programming but it
gives a wrong impression it is used. Fix by returning an error on any
partial mask to make it clear they are not supported.
The ip_ver assignment is moved earlier in code to allow using it in
iavf_validate_fdir_fltr_masks.

Fixes: 527691bf ("iavf: Support IPv4 Flow Director filters")
Fixes: e90cbc25

 ("iavf: Support IPv6 Flow Director filters")
Signed-off-by: default avatarPiotr Gardocki <piotrx.gardocki@intel.com>
Tested-by: default avatarRafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ae683468
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment