net: dsa: bcm_sf2: Allow looping back CFP rules
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 6 Feb 2019 20:46:00 +0000 (12:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Feb 2019 06:11:07 +0000 (22:11 -0800)
commitdb78ed2737b8607744623ba75bd477da8ad8a3cf
tree65a7024f27e45bd827c2f161d2ce1314525babbb
parentf4ae9c0840b7e1f9bd2177189a45a21e6f11aa8d
net: dsa: bcm_sf2: Allow looping back CFP rules

When the source and destination port of a CFP rule match, we must set
the loopback bit enable to allow that, otherwise the frame is discarded.

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