diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-11-30 10:45:26 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-30 14:21:35 -0500 |
commit | 6fef90c6b3f6a2b52018e66c0886944ea0c03fcc (patch) | |
tree | 53fcc3ae46ba6293e514ca7ca17e21a6d5a649d1 /fs | |
parent | f859b4af1c52493ec21173ccc73d0b60029b5b88 (diff) | |
download | linux-6fef90c6b3f6a2b52018e66c0886944ea0c03fcc.tar.gz linux-6fef90c6b3f6a2b52018e66c0886944ea0c03fcc.tar.bz2 linux-6fef90c6b3f6a2b52018e66c0886944ea0c03fcc.zip |
net: dsa: bcm_sf2: Set correct CHAIN_ID and slice number mask
When configuring an IPv6 address mask, we should use SLICE_NUM_MASK as
the mask in order to make sure all bits are masked by the hardware.
Also, we want matching entries to have a CHAIN_ID value set to the same
value as the rule index we return to user-space for convenience, so fix
that too.
Fixes: ba0696c22e7c ("net: dsa: bcm_sf2: Add support for IPv6 CFP rules")
Fixes: dd8eff68343d ("net: dsa: bcm_sf2: Allow matching arbitrary IPv6 masks/lengths")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions