Thread (3 messages) flat view 3 messages, 3 authors, 2016-01-07

Re: [PATCH net 1/2] vxlan: Relax the MTU constraint on vxlan devices

From: David Wragg <hidden>
Date: 2016-01-07 11:31:41

Thomas Graf [off-list ref] writes:
quoted
+	int max_mtu = 65535;
This should probably be represented as a new const DEV_MAX_MTU which
can be used by veth, tun, and virtio as well instead of hardcoding
this separately in each driver.
I discovered IP_MAX_MTU in net/route.h after putting the patch together.
Seems appropriate to use that?
quoted
+static int vxlan_change_mtu(struct net_device *dev, int new_mtu)
+{
+	struct vxlan_dev *vxlan = netdev_priv(dev);
+	struct vxlan_rdst *dst = &vxlan->default_dst;
+	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,
+							 dst->remote_ifindex);
+	return __vxlan_change_mtu(dev, lowerdev, dst, new_mtu);
Any particular reason for the indirection?
To make patch 2/2 simpler.  I can rearrange to eliminate the indirection
here if that is preferred.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help