WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 12/17] Jumbogram support.

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

<Prev in Thread] Current Thread [Next in Thread>