mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 04:22:32 -04:00
net: dsa: bcm_sf2: Utilize b53_get_tag_protocol()
Utilize the much more capable b53_get_tag_protocol() which takes care of all Broadcom switches specifics to resolve which port can have Broadcom tags enabled or not. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e94a62f507
commit
9f66816a6a
@@ -1495,8 +1495,7 @@ static bool b53_can_enable_brcm_tags(struct dsa_switch *ds, int port)
|
||||
return false;
|
||||
}
|
||||
|
||||
static enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds,
|
||||
int port)
|
||||
enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds, int port)
|
||||
{
|
||||
struct b53_device *dev = ds->priv;
|
||||
|
||||
@@ -1514,6 +1513,7 @@ static enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds,
|
||||
|
||||
return DSA_TAG_PROTO_BRCM;
|
||||
}
|
||||
EXPORT_SYMBOL(b53_get_tag_protocol);
|
||||
|
||||
int b53_mirror_add(struct dsa_switch *ds, int port,
|
||||
struct dsa_mall_mirror_tc_entry *mirror, bool ingress)
|
||||
|
||||
Reference in New Issue
Block a user