diff options
author | Andrew Lunn | 2018-12-06 11:36:04 +0100 |
---|---|---|
committer | David S. Miller | 2018-12-06 21:18:16 +0100 |
commit | a5dd308778a4e05e7b0b927cf18b89d1ebbff59c (patch) | |
tree | 719e191c23600a465a6281f0ee79dcc23bfa78d4 /net/dsa/tag_trailer.c | |
parent | tun: remove unnecessary check in tun_flow_update (diff) | |
download | kernel-qcow2-linux-a5dd308778a4e05e7b0b927cf18b89d1ebbff59c.tar.gz kernel-qcow2-linux-a5dd308778a4e05e7b0b927cf18b89d1ebbff59c.tar.xz kernel-qcow2-linux-a5dd308778a4e05e7b0b927cf18b89d1ebbff59c.zip |
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_trailer.c')
-rw-r--r-- | net/dsa/tag_trailer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/tag_trailer.c b/net/dsa/tag_trailer.c index 56197f0d9608..b40756ed6e57 100644 --- a/net/dsa/tag_trailer.c +++ b/net/dsa/tag_trailer.c @@ -84,4 +84,5 @@ static struct sk_buff *trailer_rcv(struct sk_buff *skb, struct net_device *dev, const struct dsa_device_ops trailer_netdev_ops = { .xmit = trailer_xmit, .rcv = trailer_rcv, + .overhead = 4, }; |