Home
last modified time | relevance | path

Searched refs:vlans (Results 1 – 3 of 3) sorted by relevance

/qemu/include/hw/virtio/
H A Dvirtio-net.h201 uint32_t *vlans; member
/qemu/hw/net/
H A Dvirtio-net.c481 for (j = 0; n->vlans[i] && j <= 0x1f; j++) { in get_vlan_table()
482 if (n->vlans[i] & (1U << j)) { in get_vlan_table()
1002 memset(n->vlans, 0xff, MAX_VLAN >> 3); in virtio_net_set_features()
1211 n->vlans[vid >> 5] |= (1U << (vid & 0x1f)); in virtio_net_handle_vlan_table()
1213 n->vlans[vid >> 5] &= ~(1U << (vid & 0x1f)); in virtio_net_handle_vlan_table()
1757 if (!(n->vlans[vid >> 5] & (1U << (vid & 0x1f)))) in receive_filter()
3484 VMSTATE_BUFFER_POINTER_UNSAFE(vlans, VirtIONet, 0, MAX_VLAN >> 3),
3902 n->vlans = g_malloc0(MAX_VLAN >> 3); in virtio_net_device_realize()
3942 g_free(n->vlans); in virtio_net_device_unrealize()
3993 memset(n->vlans, 0, MAX_VLAN >> 3); in virtio_net_reset()
/qemu/net/
H A Dvhost-vdpa.c1203 for (int j = 0; n->vlans[i] && j <= 0x1f; j++) { in vhost_vdpa_net_load_vlan()
1204 if (n->vlans[i] & (1U << j)) { in vhost_vdpa_net_load_vlan()