diff options
author | Sean Wang <sean.wang@mediatek.com> | 2017-04-07 16:45:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-07 13:50:55 -0700 |
commit | 87e3df4961f45888c48a0eecfbb532626c148d1e (patch) | |
tree | 780da3cb0393b9ac004412def9d760be74eddc87 /drivers/net/ethernet/mediatek/mtk_eth_soc.h | |
parent | 5cd8985a19090f2b0ce8700ae3ec19e06a4fc5e9 (diff) | |
download | talos-op-linux-87e3df4961f45888c48a0eecfbb532626c148d1e.tar.gz talos-op-linux-87e3df4961f45888c48a0eecfbb532626c148d1e.zip |
net-next: ethernet: mediatek: add CDM able to recognize the tag for DSA
The patch adds the setup for allowing CDM can recognize these packets with
carrying port-distinguishing tag. Otherwise, these tagging packets will be
handled incorrectly by CDM. The setup is also working out for general
untag packets as well.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Landen Chao <Landen.Chao@mediatek.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_eth_soc.h')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index 99b1c8e9f16f..996024d02668 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h @@ -70,6 +70,10 @@ /* Frame Engine Interrupt Grouping Register */ #define MTK_FE_INT_GRP 0x20 +/* CDMP Ingress Control Register */ +#define MTK_CDMQ_IG_CTRL 0x1400 +#define MTK_CDMQ_STAG_EN BIT(0) + /* CDMP Exgress Control Register */ #define MTK_CDMP_EG_CTRL 0x404 |