net: dsa: Add overhead to tag protocol ops.
authorAndrew Lunn <andrew@lunn.ch>
Thu, 6 Dec 2018 10:36:04 +0000 (11:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 20:18:16 +0000 (12:18 -0800)
commita5dd308778a4e05e7b0b927cf18b89d1ebbff59c
tree719e191c23600a465a6281f0ee79dcc23bfa78d4
parent5c327f673d2f134ac01c068b511c6ab816b4b41c
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>
include/net/dsa.h
net/dsa/tag_brcm.c
net/dsa/tag_dsa.c
net/dsa/tag_edsa.c
net/dsa/tag_gswip.c
net/dsa/tag_ksz.c
net/dsa/tag_lan9303.c
net/dsa/tag_mtk.c
net/dsa/tag_qca.c
net/dsa/tag_trailer.c