summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2017-12-27 08:26:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-26 11:02:12 +0200
commit64e5e46cdd8b3fcfed016dc89f057087346ad742 (patch)
tree4ebed08e875c22f42173768d7e759b250ea6256b /samples
parent1ec85fe4e259a25e69c7d73fa5efe47074fcff46 (diff)
i40e: fix reported mask for ntuple filters
[ Upstream commit 40339af33c703bacb336493157d43c86a8bf2fed ] In commit 36777d9fa24c ("i40e: check current configured input set when adding ntuple filters") some code was added to report the input set mask for a given filter when reporting it to the user. This code is necessary so that the reported filter correctly displays that it is or is not masking certain fields. Unfortunately the code was incorrect. Development error accidentally swapped the mask values for the IPv4 addresses with the L4 port numbers. The port numbers are only 16bits wide while IPv4 addresses are 32 bits. Unfortunately we assigned only 16 bits to the IPv4 address masks. Additionally we assigned 32bit value 0xFFFFFFF to the TCP port numbers. This second part does not matter as the value would be truncated to 16bits regardless, but it is unnecessary. Fix the reported masks to properly report that the entire field is masked. Fixes: 36777d9fa24c ("i40e: check current configured input set when adding ntuple filters") Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions