summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-12-06 23:18:17 +0300
committerDavid S. Miller <davem@davemloft.net>2018-12-06 23:18:17 +0300
commitd6a4b570d346c335bda4041c7e59d9a413083bc7 (patch)
tree8f91a4fdb046fea0ec14589399758a2a766156d7 /include
parent5c327f673d2f134ac01c068b511c6ab816b4b41c (diff)
parentdc0fe7d47f9f2256e3aa695bb754625f37291e17 (diff)
downloadlinux-d6a4b570d346c335bda4041c7e59d9a413083bc7.tar.xz
Merge branch 'dsa-mtu'
Andrew Lunn says: ==================== Adjust MTU of DSA master interface DSA makes use of additional headers to direct a frame in/out of a specific port of the switch. When the slave interfaces uses an MTU of 1500, the master interface can be asked to handle frames with an MTU of 1504, or 1508 bytes. Some Ethernet interfaces won't transmit/receive frames which are bigger than their MTU. Automate the increasing of the MTU on the master interface, by adding to each tagging driver how much overhead they need, and then calling dev_set_mtu() of the master interface to increase its MTU as needed. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/dsa.h1
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 {
struct packet_type *pt);
int (*flow_dissect)(const struct sk_buff *skb, __be16 *proto,
int *offset);
+ unsigned int overhead;
};
struct dsa_switch_tree {