diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-10-20 14:39:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-23 03:06:47 +0100 |
commit | bc3fc44c12d6a4722b253f19423db1244175c18c (patch) | |
tree | 4c51445cb375701a39dc1bf55943be89a9cd04e5 /drivers/net/dsa/bcm_sf2_regs.h | |
parent | net: dsa: bcm_sf2: Add support for IPv6 CFP rules (diff) | |
download | linux-dev-bc3fc44c12d6a4722b253f19423db1244175c18c.tar.xz linux-dev-bc3fc44c12d6a4722b253f19423db1244175c18c.zip |
net: dsa: bcm_sf2: Allow matching arbitrary IPv4 mask lengths
There is no reason why we should limit ourselves to matching only full
IPv4 addresses (/32), the same logic applies between the DATA and MASK
ports, so just make it more configurable to accept both.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2_regs.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2_regs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/bcm_sf2_regs.h b/drivers/net/dsa/bcm_sf2_regs.h index 93c600d1f732..3ccd5a865dcb 100644 --- a/drivers/net/dsa/bcm_sf2_regs.h +++ b/drivers/net/dsa/bcm_sf2_regs.h @@ -313,7 +313,7 @@ enum bcm_sf2_reg_offs { #define SLICE_VALID 3 #define SLICE_NUM_SHIFT 2 #define SLICE_NUM(x) ((x) << SLICE_NUM_SHIFT) -#define SLICE_NUM_MASK 0xff +#define SLICE_NUM_MASK 0x3 #define CORE_CFP_MASK_PORT_0 0x280c0 |