diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-12-06 05:36:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-06 15:18:16 -0500 |
commit | a5dd308778a4e05e7b0b927cf18b89d1ebbff59c (patch) | |
tree | 719e191c23600a465a6281f0ee79dcc23bfa78d4 /include/net/dsa.h | |
parent | 5c327f673d2f134ac01c068b511c6ab816b4b41c (diff) |
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 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 23690c44e167..6ee2e24e0a6e 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -113,6 +113,7 @@ struct dsa_device_ops { | |||
113 | struct packet_type *pt); | 113 | struct packet_type *pt); |
114 | int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto, | 114 | int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto, |
115 | int *offset); | 115 | int *offset); |
116 | unsigned int overhead; | ||
116 | }; | 117 | }; |
117 | 118 | ||
118 | struct dsa_switch_tree { | 119 | struct dsa_switch_tree { |