diff options
author | Kumar Sanghvi <kumaras@chelsio.com> | 2018-05-14 13:57:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-15 05:41:29 +0300 |
commit | 849a742c59a3d597473c0232f9c2506c69eeef14 (patch) | |
tree | edd3a5cbada000d8b145352858aedec6048578af /drivers/net/vmxnet3/vmxnet3_drv.c | |
parent | d49baa7e12ee70c0a7b821d088a770c94c02e494 (diff) | |
download | linux-849a742c59a3d597473c0232f9c2506c69eeef14.tar.xz |
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 'drivers/net/vmxnet3/vmxnet3_drv.c')
0 files changed, 0 insertions, 0 deletions