Most of the hard work was already done, and it just needed to be
plumbed through.
Signed-off-by: Steven Smith <steven.smith@xxxxxxxxxx>
---
drivers/net/xen-netchannel2/chan.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/drivers/net/xen-netchannel2/chan.c
b/drivers/net/xen-netchannel2/chan.c
index 1317482..238e7fe 100644
--- a/drivers/net/xen-netchannel2/chan.c
+++ b/drivers/net/xen-netchannel2/chan.c
@@ -323,11 +323,20 @@ static struct net_device_stats *nc2_get_stats(struct
net_device *nd)
return &nc->stats;
}
+static int nc2_change_mtu(struct net_device *nd, int mtu)
+{
+ if (mtu > NETCHANNEL2_MAX_PACKET_BYTES)
+ return -EINVAL;
+ nd->mtu = mtu;
+ return 0;
+}
+
static const struct net_device_ops nc2_net_device_ops = {
.ndo_open = nc2_open,
.ndo_stop = nc2_stop,
.ndo_start_xmit = nc2_start_xmit,
- .ndo_get_stats = nc2_get_stats
+ .ndo_get_stats = nc2_get_stats,
+ .ndo_change_mtu = nc2_change_mtu,
};
/* Create a new netchannel2 structure. Call with no locks held.
--
1.6.3.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|