virtio_net.c (58472a76cf811c40668bab20410c71f795774361) | virtio_net.c (f2cedb63df14342ad40a8b5b324fc5d94a60b665) |
---|---|
1/* A network driver using virtio. 2 * 3 * Copyright 2007 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1046 unchanged lines hidden (view full) --- 1055 dev->features |= dev->hw_features & (NETIF_F_ALL_TSO|NETIF_F_UFO); 1056 /* (!csum && gso) case will be fixed by register_netdev() */ 1057 } 1058 1059 /* Configuration may specify what MAC to use. Otherwise random. */ 1060 if (virtio_config_val_len(vdev, VIRTIO_NET_F_MAC, 1061 offsetof(struct virtio_net_config, mac), 1062 dev->dev_addr, dev->addr_len) < 0) | 1/* A network driver using virtio. 2 * 3 * Copyright 2007 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1046 unchanged lines hidden (view full) --- 1055 dev->features |= dev->hw_features & (NETIF_F_ALL_TSO|NETIF_F_UFO); 1056 /* (!csum && gso) case will be fixed by register_netdev() */ 1057 } 1058 1059 /* Configuration may specify what MAC to use. Otherwise random. */ 1060 if (virtio_config_val_len(vdev, VIRTIO_NET_F_MAC, 1061 offsetof(struct virtio_net_config, mac), 1062 dev->dev_addr, dev->addr_len) < 0) |
1063 random_ether_addr(dev->dev_addr); | 1063 eth_hw_addr_random(dev); |
1064 1065 /* Set up our device-specific information */ 1066 vi = netdev_priv(dev); 1067 netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight); 1068 vi->dev = dev; 1069 vi->vdev = vdev; 1070 vdev->priv = vi; 1071 vi->pages = NULL; --- 195 unchanged lines hidden --- | 1064 1065 /* Set up our device-specific information */ 1066 vi = netdev_priv(dev); 1067 netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight); 1068 vi->dev = dev; 1069 vi->vdev = vdev; 1070 vdev->priv = vi; 1071 vi->pages = NULL; --- 195 unchanged lines hidden --- |