summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPiotr Gardocki <piotrx.gardocki@intel.com>2023-08-07 16:46:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-26 14:23:34 +0200
commit5ba2b936f3e1e6325d70e4e8de71ad905477478a (patch)
tree07394afd01f00b837cf4b40a381ab49330dfee87 /net/unix/af_unix.c
parentae6834689fd69b6ee068d6f124a3b14714e0fc3b (diff)
iavf: fix FDIR rule fields masks validation
[ Upstream commit 751969e5b1196821ef78f0aa664a8a97c92c9057 ] 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: 527691bf0682 ("iavf: Support IPv4 Flow Director filters") Fixes: e90cbc257a6f ("iavf: Support IPv6 Flow Director filters") Signed-off-by: Piotr Gardocki <piotrx.gardocki@intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions