]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Allow targeting CPU ports for CFP rules
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 3 Aug 2018 18:08:41 +0000 (11:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2018 19:11:43 +0000 (12:11 -0700)
commitb23c145d06076f3577c0c658fea20284e4c32016
tree2592895a75b636bd7d5dd6dd7f76f35e22c86f5c
parent83871d6d9db2a99219cd8a5e3f261cb9bf94ad28
net: dsa: bcm_sf2: Allow targeting CPU ports for CFP rules

ds->enabled_port_mask only contains a bitmask of user-facing enabled
ports, we also need to allow programming CFP rules that target CPU ports
(e.g: ports 5 and 8).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2_cfp.c