diff options
| author | John Crispin <[email protected]> | 2016-09-15 14:26:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-09-16 08:31:51 +0000 |
| commit | cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce (patch) | |
| tree | ac9827ee9762a5edd72c25dc54c9e39fd1ad94c4 /net/dsa/dsa.c | |
| parent | Documentation: devicetree: add qca8k binding (diff) | |
| download | kernel-cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce.tar.gz kernel-cafdc45c949b9963cbfb8fe3a68d0ab16b0208ce.zip | |
net-next: dsa: add Qualcomm tag RX/TX handler
Add support for the 2-bytes Qualcomm tag that gigabit switches such as
the QCA8337/N might insert when receiving packets, or that we need
to insert while targeting specific switch ports. The tag is inserted
directly behind the ethernet header.
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: John Crispin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
| -rw-r--r-- | net/dsa/dsa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index d8d267e9a872..66e31acfcad8 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -54,6 +54,9 @@ const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = { #ifdef CONFIG_NET_DSA_TAG_BRCM [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops, #endif +#ifdef CONFIG_NET_DSA_TAG_QCA + [DSA_TAG_PROTO_QCA] = &qca_netdev_ops, +#endif [DSA_TAG_PROTO_NONE] = &none_ops, }; |
