Lines Matching refs:VirtIONet

117     VirtIONet *n = qemu_get_nic_opaque(nc);  in virtio_net_get_subqueue()
143 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_get_config()
194 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_set_config()
218 static bool virtio_net_started(VirtIONet *n, uint8_t status) in virtio_net_started()
225 static void virtio_net_announce_notify(VirtIONet *net) in virtio_net_announce_notify()
236 VirtIONet *n = opaque; in virtio_net_announce_timer()
245 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_announce()
263 static void virtio_net_vhost_status(VirtIONet *n, uint8_t status) in virtio_net_vhost_status()
353 static void virtio_net_vnet_endian_status(VirtIONet *n, uint8_t status) in virtio_net_vnet_endian_status()
387 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_set_status()
444 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_set_link_status()
461 VirtIONet *n = qemu_get_nic_opaque(nc); in rxfilter_notify()
473 static intList *get_vlan_table(VirtIONet *n) in get_vlan_table()
492 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_query_rxfilter()
555 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_queue_reset()
579 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_queue_enable()
604 static void peer_test_vnet_hdr(VirtIONet *n) in peer_test_vnet_hdr()
614 static int peer_has_vnet_hdr(VirtIONet *n) in peer_has_vnet_hdr()
619 static int peer_has_ufo(VirtIONet *n) in peer_has_ufo()
629 static int peer_has_uso(VirtIONet *n) in peer_has_uso()
638 static void virtio_net_set_mrg_rx_bufs(VirtIONet *n, int mergeable_rx_bufs, in virtio_net_set_mrg_rx_bufs()
669 static int virtio_net_max_tx_queue_size(VirtIONet *n) in virtio_net_max_tx_queue_size()
690 static int peer_attach(VirtIONet *n, int index) in peer_attach()
713 static int peer_detach(VirtIONet *n, int index) in peer_detach()
732 static void virtio_net_set_queue_pairs(VirtIONet *n) in virtio_net_set_queue_pairs()
752 static void virtio_net_set_multiqueue(VirtIONet *n, int multiqueue);
757 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_get_features()
842 static void virtio_net_apply_guest_offloads(VirtIONet *n) in virtio_net_apply_guest_offloads()
868 uint64_t virtio_net_supported_guest_offloads(const VirtIONet *n) in virtio_net_supported_guest_offloads()
875 VirtIONet *n;
910 static DeviceState *failover_find_primary_device(VirtIONet *n) in failover_find_primary_device()
921 static void failover_add_primary(VirtIONet *n, Error **errp) in failover_add_primary()
952 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_set_features()
1018 static int virtio_net_handle_rx_mode(VirtIONet *n, uint8_t cmd, in virtio_net_handle_rx_mode()
1051 static int virtio_net_handle_offloads(VirtIONet *n, uint8_t cmd, in virtio_net_handle_offloads()
1096 static int virtio_net_handle_mac(VirtIONet *n, uint8_t cmd, in virtio_net_handle_mac()
1192 static int virtio_net_handle_vlan_table(VirtIONet *n, uint8_t cmd, in virtio_net_handle_vlan_table()
1221 static int virtio_net_handle_announce(VirtIONet *n, uint8_t cmd, in virtio_net_handle_announce()
1257 static bool virtio_net_attach_epbf_rss(VirtIONet *n) in virtio_net_attach_epbf_rss()
1279 static void virtio_net_detach_epbf_rss(VirtIONet *n) in virtio_net_detach_epbf_rss()
1284 static void virtio_net_commit_rss_config(VirtIONet *n) in virtio_net_commit_rss_config()
1308 static void virtio_net_disable_rss(VirtIONet *n) in virtio_net_disable_rss()
1318 static bool virtio_net_load_ebpf_fds(VirtIONet *n) in virtio_net_load_ebpf_fds()
1351 static bool virtio_net_load_ebpf(VirtIONet *n) in virtio_net_load_ebpf()
1364 static void virtio_net_unload_ebpf(VirtIONet *n) in virtio_net_unload_ebpf()
1370 static uint16_t virtio_net_handle_rss(VirtIONet *n, in virtio_net_handle_rss()
1490 static int virtio_net_handle_mq(VirtIONet *n, uint8_t cmd, in virtio_net_handle_mq()
1548 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_handle_ctrl_iov()
1615 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_handle_rx()
1623 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_can_receive()
1647 VirtIONet *n = q->n; in virtio_net_has_buffers()
1705 static void receive_header(VirtIONet *n, const struct iovec *iov, int iov_cnt, in receive_header()
1727 static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) in receive_filter()
1842 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_process_rss()
1895 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_receive_rcu()
2131 static void virtio_net_rsc_cleanup(VirtIONet *n) in virtio_net_rsc_cleanup()
2478 hdr_len = ((VirtIONet *)(chain->n))->guest_hdr_len; in virtio_net_rsc_receive4()
2548 hdr_len = ((VirtIONet *)(chain->n))->guest_hdr_len; in virtio_net_rsc_receive6()
2575 static VirtioNetRscChain *virtio_net_rsc_lookup_chain(VirtIONet *n, in virtio_net_rsc_lookup_chain()
2618 VirtIONet *n; in virtio_net_rsc_receive()
2643 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_receive()
2655 VirtIONet *n = qemu_get_nic_opaque(nc); in virtio_net_tx_complete()
2688 VirtIONet *n = q->n; in virtio_net_flush_tx()
2792 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_handle_tx_timer()
2821 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_handle_tx_bh()
2848 VirtIONet *n = q->n; in virtio_net_tx_timer()
2898 VirtIONet *n = q->n; in virtio_net_tx_bh()
2944 static void virtio_net_add_queue(VirtIONet *n, int index) in virtio_net_add_queue()
2970 static void virtio_net_del_queue(VirtIONet *n, int index) in virtio_net_del_queue()
2990 static void virtio_net_change_num_queue_pairs(VirtIONet *n, int new_max_queue_pairs) in virtio_net_change_num_queue_pairs()
3025 static void virtio_net_set_multiqueue(VirtIONet *n, int multiqueue) in virtio_net_set_multiqueue()
3037 VirtIONet *n = opaque; in virtio_net_post_load_device()
3101 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_post_load_virtio()
3149 VirtIONet *parent;
3284 VMSTATE_BOOL(rss_data.enabled, VirtIONet),
3285 VMSTATE_BOOL(rss_data.redirect, VirtIONet),
3286 VMSTATE_BOOL(rss_data.populate_hash, VirtIONet),
3287 VMSTATE_UINT32(rss_data.hash_types, VirtIONet),
3288 VMSTATE_UINT16(rss_data.indirections_len, VirtIONet),
3289 VMSTATE_UINT16(rss_data.default_queue, VirtIONet),
3290 VMSTATE_UINT8_ARRAY(rss_data.key, VirtIONet,
3292 VMSTATE_VARRAY_UINT16_ALLOC(rss_data.indirections_table, VirtIONet,
3305 VMSTATE_UINT8_ARRAY(mac, VirtIONet, ETH_ALEN),
3306 VMSTATE_STRUCT_POINTER(vqs, VirtIONet,
3309 VMSTATE_UINT32(mergeable_rx_bufs, VirtIONet),
3310 VMSTATE_UINT16(status, VirtIONet),
3311 VMSTATE_UINT8(promisc, VirtIONet),
3312 VMSTATE_UINT8(allmulti, VirtIONet),
3313 VMSTATE_UINT32(mac_table.in_use, VirtIONet),
3319 VMSTATE_VBUFFER_MULTIPLY(mac_table.macs, VirtIONet,
3322 VMSTATE_UNUSED_VARRAY_UINT32(VirtIONet, mac_table_doesnt_fit, 0,
3329 VMSTATE_BUFFER_POINTER_UNSAFE(vlans, VirtIONet, 0, MAX_VLAN >> 3),
3330 VMSTATE_WITH_TMP(VirtIONet, struct VirtIONetMigTmp,
3332 VMSTATE_UINT8(mac_table.multi_overflow, VirtIONet),
3333 VMSTATE_UINT8(mac_table.uni_overflow, VirtIONet),
3334 VMSTATE_UINT8(alluni, VirtIONet),
3335 VMSTATE_UINT8(nomulti, VirtIONet),
3336 VMSTATE_UINT8(nouni, VirtIONet),
3337 VMSTATE_UINT8(nobcast, VirtIONet),
3338 VMSTATE_WITH_TMP(VirtIONet, struct VirtIONetMigTmp,
3340 VMSTATE_SINGLE_TEST(max_queue_pairs, VirtIONet, max_queue_pairs_gt_1, 0,
3342 VMSTATE_UINT16_TEST(curr_queue_pairs, VirtIONet, max_queue_pairs_gt_1),
3343 VMSTATE_WITH_TMP(VirtIONet, struct VirtIONetMigTmp,
3345 VMSTATE_UINT64_TEST(curr_guest_offloads, VirtIONet,
3367 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_guest_notifier_pending()
3399 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_guest_notifier_mask()
3429 static void virtio_net_set_config_size(VirtIONet *n, uint64_t host_features) in virtio_net_set_config_size()
3436 void virtio_net_set_netclient_name(VirtIONet *n, const char *name, in virtio_net_set_netclient_name()
3450 static bool failover_unplug_primary(VirtIONet *n, DeviceState *dev) in failover_unplug_primary()
3471 static bool failover_replug_primary(VirtIONet *n, DeviceState *dev, in failover_replug_primary()
3504 static void virtio_net_handle_migration_primary(VirtIONet *n, MigrationEvent *e) in virtio_net_handle_migration_primary()
3537 VirtIONet *n = container_of(notifier, VirtIONet, migration_state); in virtio_net_migration_state_notifier()
3547 VirtIONet *n = container_of(listener, VirtIONet, primary_listener); in failover_hide_primary_device()
3596 VirtIONet *n = VIRTIO_NET(dev); in virtio_net_device_realize()
3770 VirtIONet *n = VIRTIO_NET(dev); in virtio_net_device_unrealize()
3813 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_reset()
3849 VirtIONet *n = VIRTIO_NET(obj); in virtio_net_instance_init()
3865 VirtIONet *n = opaque; in virtio_net_pre_save()
3879 VirtIONet *n = VIRTIO_NET(vdev); in primary_unplug_pending()
3898 VirtIONet *n = VIRTIO_NET(vdev); in virtio_net_get_vhost()
3917 DEFINE_PROP_BIT64("csum", VirtIONet, host_features,
3919 DEFINE_PROP_BIT64("guest_csum", VirtIONet, host_features,
3921 DEFINE_PROP_BIT64("gso", VirtIONet, host_features, VIRTIO_NET_F_GSO, true),
3922 DEFINE_PROP_BIT64("guest_tso4", VirtIONet, host_features,
3924 DEFINE_PROP_BIT64("guest_tso6", VirtIONet, host_features,
3926 DEFINE_PROP_BIT64("guest_ecn", VirtIONet, host_features,
3928 DEFINE_PROP_BIT64("guest_ufo", VirtIONet, host_features,
3930 DEFINE_PROP_BIT64("guest_announce", VirtIONet, host_features,
3932 DEFINE_PROP_BIT64("host_tso4", VirtIONet, host_features,
3934 DEFINE_PROP_BIT64("host_tso6", VirtIONet, host_features,
3936 DEFINE_PROP_BIT64("host_ecn", VirtIONet, host_features,
3938 DEFINE_PROP_BIT64("host_ufo", VirtIONet, host_features,
3940 DEFINE_PROP_BIT64("mrg_rxbuf", VirtIONet, host_features,
3942 DEFINE_PROP_BIT64("status", VirtIONet, host_features,
3944 DEFINE_PROP_BIT64("ctrl_vq", VirtIONet, host_features,
3946 DEFINE_PROP_BIT64("ctrl_rx", VirtIONet, host_features,
3948 DEFINE_PROP_BIT64("ctrl_vlan", VirtIONet, host_features,
3950 DEFINE_PROP_BIT64("ctrl_rx_extra", VirtIONet, host_features,
3952 DEFINE_PROP_BIT64("ctrl_mac_addr", VirtIONet, host_features,
3954 DEFINE_PROP_BIT64("ctrl_guest_offloads", VirtIONet, host_features,
3956 DEFINE_PROP_BIT64("mq", VirtIONet, host_features, VIRTIO_NET_F_MQ, false),
3957 DEFINE_PROP_BIT64("rss", VirtIONet, host_features,
3959 DEFINE_PROP_BIT64("hash", VirtIONet, host_features,
3961 DEFINE_PROP_ARRAY("ebpf-rss-fds", VirtIONet, nr_ebpf_rss_fds,
3963 DEFINE_PROP_BIT64("guest_rsc_ext", VirtIONet, host_features,
3965 DEFINE_PROP_UINT32("rsc_interval", VirtIONet, rsc_timeout,
3967 DEFINE_NIC_PROPERTIES(VirtIONet, nic_conf),
3968 DEFINE_PROP_UINT32("x-txtimer", VirtIONet, net_conf.txtimer,
3970 DEFINE_PROP_INT32("x-txburst", VirtIONet, net_conf.txburst, TX_BURST),
3971 DEFINE_PROP_STRING("tx", VirtIONet, net_conf.tx),
3972 DEFINE_PROP_UINT16("rx_queue_size", VirtIONet, net_conf.rx_queue_size,
3974 DEFINE_PROP_UINT16("tx_queue_size", VirtIONet, net_conf.tx_queue_size,
3976 DEFINE_PROP_UINT16("host_mtu", VirtIONet, net_conf.mtu, 0),
3977 DEFINE_PROP_BOOL("x-mtu-bypass-backend", VirtIONet, mtu_bypass_backend,
3979 DEFINE_PROP_INT32("speed", VirtIONet, net_conf.speed, SPEED_UNKNOWN),
3980 DEFINE_PROP_STRING("duplex", VirtIONet, net_conf.duplex_str),
3981 DEFINE_PROP_BOOL("failover", VirtIONet, failover, false),
3982 DEFINE_PROP_BIT64("guest_uso4", VirtIONet, host_features,
3984 DEFINE_PROP_BIT64("guest_uso6", VirtIONet, host_features,
3986 DEFINE_PROP_BIT64("host_uso", VirtIONet, host_features,
4023 .instance_size = sizeof(VirtIONet),