summaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_gswip.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-12-06 11:36:04 +0100
committerDavid S. Miller <davem@davemloft.net>2018-12-06 12:18:16 -0800
commita5dd308778a4e05e7b0b927cf18b89d1ebbff59c (patch)
tree719e191c23600a465a6281f0ee79dcc23bfa78d4 /net/dsa/tag_gswip.c
parent5c327f673d2f134ac01c068b511c6ab816b4b41c (diff)
downloadlinux-a5dd308778a4e05e7b0b927cf18b89d1ebbff59c.tar.bz2
net: dsa: Add overhead to tag protocol ops.
Each DSA tag protocol needs to add additional headers to the Ethernet frame in order to direct it towards a specific switch egress port. It must also remove the head from a frame received from a switch. Indicate the maximum size of these headers in the tag protocol ops structure, so the core can take these overheads into account. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_gswip.c')
-rw-r--r--net/dsa/tag_gswip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/tag_gswip.c b/net/dsa/tag_gswip.c
index 49e9b73f1be3..cb6f82ffe5eb 100644
--- a/net/dsa/tag_gswip.c
+++ b/net/dsa/tag_gswip.c
@@ -106,4 +106,5 @@ static struct sk_buff *gswip_tag_rcv(struct sk_buff *skb,
const struct dsa_device_ops gswip_netdev_ops = {
.xmit = gswip_tag_xmit,
.rcv = gswip_tag_rcv,
+ .overhead = GSWIP_RX_HEADER_LEN,
};