diff options
author | Kumar Sanghvi <kumaras@chelsio.com> | 2018-05-14 16:27:34 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-14 22:41:29 -0400 |
commit | 849a742c59a3d597473c0232f9c2506c69eeef14 (patch) | |
tree | edd3a5cbada000d8b145352858aedec6048578af /net/ipv4/tcp_output.c | |
parent | d49baa7e12ee70c0a7b821d088a770c94c02e494 (diff) | |
download | linux-849a742c59a3d597473c0232f9c2506c69eeef14.tar.gz linux-849a742c59a3d597473c0232f9c2506c69eeef14.tar.bz2 linux-849a742c59a3d597473c0232f9c2506c69eeef14.zip |
cxgb4: Correct ntuple mask validation for hash filters
Earlier code of doing bitwise AND with field width bits was wrong.
Instead, simplify code to calculate ntuple_mask based on supplied
fields and then compare with mask configured in hw - which is the
correct and simpler way to validate ntuple mask.
Fixes: 3eb8b62d5a26 ("cxgb4: add support to create hash-filters via tc-flower offload")
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions