net-next: ethernet: mediatek: add CDM able to recognize the tag for DSA
authorSean Wang <sean.wang@mediatek.com>
Fri, 7 Apr 2017 08:45:07 +0000 (16:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Apr 2017 20:50:55 +0000 (13:50 -0700)
commit87e3df4961f45888c48a0eecfbb532626c148d1e
tree780da3cb0393b9ac004412def9d760be74eddc87
parent5cd8985a19090f2b0ce8700ae3ec19e06a4fc5e9
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>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h