[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 13/22] 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/xen/netchannel2/chan.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/xen/netchannel2/chan.c b/drivers/xen/netchannel2/chan.c
index ae9bdb0..109f1b4 100644
--- a/drivers/xen/netchannel2/chan.c
+++ b/drivers/xen/netchannel2/chan.c
@@ -322,6 +322,14 @@ 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)
+               return -EINVAL;
+       nd->mtu = mtu;
+       return 0;
 /* Create a new netchannel2 structure. Call with no locks held.
    Returns NULL on error.  The xenbus device must remain valid for as
    long as the netchannel2 structure does.  The core does not take out
@@ -391,6 +399,7 @@ struct netchannel2 *nc2_new(struct xenbus_device *xd)
        netdev->stop = nc2_stop;
        netdev->hard_start_xmit = nc2_start_xmit;
        netdev->get_stats = nc2_get_stats;
+       netdev->change_mtu = nc2_change_mtu;
        /* We need to hold the ring lock in order to send messages
           anyway, so there's no point in Linux doing additional

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.