|
|
|
|
|
|
|
|
|
|
xen-devel
[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)
+{
+ if (mtu > NETCHANNEL2_MAX_PACKET_BYTES)
+ 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
--
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>
|
- [Xen-devel] [PATCH 08/22] Extend the grant tables implementation with an improved allocation batching mechanism., (continued)
- [Xen-devel] [PATCH 08/22] Extend the grant tables implementation with an improved allocation batching mechanism., steven.smith
- [Xen-devel] [PATCH 05/22] Introduce support for version 2 grant tables. Use them by default when available., steven.smith
- [Xen-devel] [PATCH 09/22] Add a very basic netchannel2 implementation., steven.smith
- [Xen-devel] [PATCH 10/22] Add a fall-back poller, in case finish messages get stuck somewhere., steven.smith
- [Xen-devel] [PATCH 19/22] Add the basic VMQ APIs. Nobody uses or implements them at the moment, but that will change shortly., steven.smith
- [Xen-devel] [PATCH 21/22] NC2 VMQ support., steven.smith
- [Xen-devel] [PATCH 14/22] TSO support., steven.smith
- [Xen-devel] [PATCH 12/22] Scatter-gather support., steven.smith
- [Xen-devel] [PATCH 17/22] Add some userspace tools for managing the creation and destruction of bypass rings., steven.smith
- [Xen-devel] [PATCH 11/22] Transmit and receive checksum offload support., steven.smith
- [Xen-devel] [PATCH 13/22] Jumbogram support.,
steven.smith <=
- [Xen-devel] [PATCH 18/22] Add support for automatically creating and destroying bypass rings in response to observed traffic., steven.smith
- [Xen-devel] [PATCH 15/22] Add support for receiver-map mode., steven.smith
- [Xen-devel] [PATCH 20/22] Posted buffer mode support., steven.smith
- [Xen-devel] [PATCH 16/22] Bypass support, for both frontend and backend., steven.smith
- [Xen-devel] [PATCH 22/22] Add netchannel2 VMQ support to an old version of the ixgbe driver., steven.smith
|
|
|
|
|