diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-10-11 10:57:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-12 12:10:02 -0700 |
commit | 0a5f14ce67a6e093e651d3cd75e6ac281123d93a (patch) | |
tree | be53f67eb5014acc40b6d04effd68d425d8bcb18 /include/net/dsa.h | |
parent | 60724d4bae14cd295b27b1610cad9a2720eb0860 (diff) | |
download | linux-0a5f14ce67a6e093e651d3cd75e6ac281123d93a.tar.gz linux-0a5f14ce67a6e093e651d3cd75e6ac281123d93a.tar.bz2 linux-0a5f14ce67a6e093e651d3cd75e6ac281123d93a.zip |
net: dsa: tag_brcm: Indicate to master netdevice port + queue
We need to tell the DSA master network device doing the actual
transmission what the desired switch port and queue number is for it to
resolve that to the internal transmit queue it is mapped to.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 40a709a0754d..ce1d622734d7 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -516,4 +516,9 @@ static inline int call_dsa_notifiers(unsigned long val, struct net_device *dev, } #endif +/* Broadcom tag specific helpers to insert and extract queue/port number */ +#define BRCM_TAG_SET_PORT_QUEUE(p, q) ((p) << 8 | q) +#define BRCM_TAG_GET_PORT(v) ((v) >> 8) +#define BRCM_TAG_GET_QUEUE(v) ((v) & 0xff) + #endif |