diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-20 23:36:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-23 00:58:31 +0300 |
commit | 64ff2aef91afdff7f22eaef05a65b5bc3429ef21 (patch) | |
tree | 3f6a0d0259b80798d51a5aefcb2496e3ab95197c /drivers/net/dsa/bcm_sf2.h | |
parent | ebb2ac4f32c32364b6f522270aeb0811829bd3cb (diff) | |
download | linux-64ff2aef91afdff7f22eaef05a65b5bc3429ef21.tar.xz |
net: dsa: bcm_sf2: Allow non-IMP ports to have Broadcom tags enabled
Parse the "brcm,use-bcm-hdr" boolean property during ports
identification to fill a bitmask of ports that should have Broadcom tags
enabled. This is needed in some configurations where per-packet metadata
can be exchanged using Broadcom tags between the switch and an on-chip
acceleration device.
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.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h index a1430866bd79..6e1f74e4d471 100644 --- a/drivers/net/dsa/bcm_sf2.h +++ b/drivers/net/dsa/bcm_sf2.h @@ -100,6 +100,9 @@ struct bcm_sf2_priv { struct device_node *master_mii_dn; struct mii_bus *slave_mii_bus; struct mii_bus *master_mii_bus; + + /* Bitmask of ports needing BRCM tags */ + unsigned int brcm_tag_mask; }; static inline struct bcm_sf2_priv *bcm_sf2_to_priv(struct dsa_switch *ds) |