xen_nic.c (585fcd4b11070b3220685fc54ecca1991cdeb161) xen_nic.c (f394b2e20d9a666fb194fb692179a0eeaca5daea)
1/*
2 * xen paravirt network card backend
3 *
4 * (c) Gerd Hoffmann <kraxel@redhat.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; under version 2 of the License.

--- 255 unchanged lines hidden (view full) ---

264 net_rx_response(netdev, &rxreq, NETIF_RSP_OKAY, NET_IP_ALIGN, size, 0);
265
266 return size;
267}
268
269/* ------------------------------------------------------------- */
270
271static NetClientInfo net_xen_info = {
1/*
2 * xen paravirt network card backend
3 *
4 * (c) Gerd Hoffmann <kraxel@redhat.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; under version 2 of the License.

--- 255 unchanged lines hidden (view full) ---

264 net_rx_response(netdev, &rxreq, NETIF_RSP_OKAY, NET_IP_ALIGN, size, 0);
265
266 return size;
267}
268
269/* ------------------------------------------------------------- */
270
271static NetClientInfo net_xen_info = {
272 .type = NET_CLIENT_OPTIONS_KIND_NIC,
272 .type = NET_CLIENT_DRIVER_NIC,
273 .size = sizeof(NICState),
274 .receive = net_rx_packet,
275};
276
277static int net_init(struct XenDevice *xendev)
278{
279 struct XenNetDev *netdev = container_of(xendev, struct XenNetDev, xendev);
280

--- 131 unchanged lines hidden ---
273 .size = sizeof(NICState),
274 .receive = net_rx_packet,
275};
276
277static int net_init(struct XenDevice *xendev)
278{
279 struct XenNetDev *netdev = container_of(xendev, struct XenNetDev, xendev);
280

--- 131 unchanged lines hidden ---