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>
This commit is contained in:
committed by
David S. Miller
parent
5c327f673d
commit
a5dd308778
@ -113,6 +113,7 @@ struct dsa_device_ops {
|
||||
struct packet_type *pt);
|
||||
int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto,
|
||||
int *offset);
|
||||
unsigned int overhead;
|
||||
};
|
||||
|
||||
struct dsa_switch_tree {
|
||||
|
Reference in New Issue
Block a user