virtio-net.c (66577e9e1caee48c6ebc1a2161b5d9857fcde8b3) | virtio-net.c (aac8f89dba870bb263d05bb84c3d64e0204be092) |
---|---|
1/* 2 * Virtio Network Device 3 * 4 * Copyright IBM, Corp. 2007 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 3704 unchanged lines hidden (view full) --- 3713 struct virtio_net_config netcfg = {}; 3714 memcpy(&netcfg.mac, &n->nic_conf.macaddr, ETH_ALEN); 3715 vhost_net_set_config(get_vhost_net(nc->peer), 3716 (uint8_t *)&netcfg, 0, ETH_ALEN, VHOST_SET_CONFIG_TYPE_MASTER); 3717 } 3718 QTAILQ_INIT(&n->rsc_chains); 3719 n->qdev = dev; 3720 | 1/* 2 * Virtio Network Device 3 * 4 * Copyright IBM, Corp. 2007 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 3704 unchanged lines hidden (view full) --- 3713 struct virtio_net_config netcfg = {}; 3714 memcpy(&netcfg.mac, &n->nic_conf.macaddr, ETH_ALEN); 3715 vhost_net_set_config(get_vhost_net(nc->peer), 3716 (uint8_t *)&netcfg, 0, ETH_ALEN, VHOST_SET_CONFIG_TYPE_MASTER); 3717 } 3718 QTAILQ_INIT(&n->rsc_chains); 3719 n->qdev = dev; 3720 |
3721 net_rx_pkt_init(&n->rx_pkt, false); | 3721 net_rx_pkt_init(&n->rx_pkt); |
3722 3723 if (virtio_has_feature(n->host_features, VIRTIO_NET_F_RSS)) { 3724 virtio_net_load_ebpf(n); 3725 } 3726} 3727 3728static void virtio_net_device_unrealize(DeviceState *dev) 3729{ --- 220 unchanged lines hidden --- | 3722 3723 if (virtio_has_feature(n->host_features, VIRTIO_NET_F_RSS)) { 3724 virtio_net_load_ebpf(n); 3725 } 3726} 3727 3728static void virtio_net_device_unrealize(DeviceState *dev) 3729{ --- 220 unchanged lines hidden --- |