From: Florian Fainelli Date: Mon, 30 Jan 2017 20:41:43 +0000 (-0800) Subject: net: dsa: bcm_sf2: Add support for port mirroring X-Git-Tag: v5.15~11849^2~281^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec960de61503ef349588dccfa3ae02efabcc2762;p=platform%2Fkernel%2Flinux-starfive.git net: dsa: bcm_sf2: Add support for port mirroring We can use b53_mirror_add and b53_mirror_del because the Starfighter 2 is register compatible in that specific case. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index be282b4..2be9632 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -1047,6 +1047,8 @@ static const struct dsa_switch_ops bcm_sf2_ops = { .port_fdb_del = b53_fdb_del, .get_rxnfc = bcm_sf2_get_rxnfc, .set_rxnfc = bcm_sf2_set_rxnfc, + .port_mirror_add = b53_mirror_add, + .port_mirror_del = b53_mirror_del, }; struct bcm_sf2_of_data {