Lines Matching refs:vlantap

57 	struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap);  in macvtap_count_tx_dropped()  local
58 struct macvlan_dev *vlan = &vlantap->vlan; in macvtap_count_tx_dropped()
65 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_count_rx_dropped() local
66 struct macvlan_dev *vlan = &vlantap->vlan; in macvtap_count_rx_dropped()
74 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_update_features() local
75 struct macvlan_dev *vlan = &vlantap->vlan; in macvtap_update_features()
85 struct macvtap_dev *vlantap = netdev_priv(dev); in macvtap_newlink() local
88 INIT_LIST_HEAD(&vlantap->tap.queue_list); in macvtap_newlink()
93 vlantap->tap.tap_features = TUN_OFFLOADS; in macvtap_newlink()
98 vlantap->tap.count_tx_dropped = macvtap_count_tx_dropped; in macvtap_newlink()
99 vlantap->tap.count_rx_dropped = macvtap_count_rx_dropped; in macvtap_newlink()
100 vlantap->tap.update_features = macvtap_update_features; in macvtap_newlink()
102 err = netdev_rx_handler_register(dev, tap_handle_frame, &vlantap->tap); in macvtap_newlink()
115 vlantap->tap.dev = vlantap->vlan.dev; in macvtap_newlink()
123 struct macvtap_dev *vlantap = netdev_priv(dev); in macvtap_dellink() local
126 tap_del_queues(&vlantap->tap); in macvtap_dellink()
154 struct macvtap_dev *vlantap; in macvtap_device_event() local
164 vlantap = netdev_priv(dev); in macvtap_device_event()
172 err = tap_get_minor(macvtap_major, &vlantap->tap); in macvtap_device_event()
176 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
180 tap_free_minor(macvtap_major, &vlantap->tap); in macvtap_device_event()
190 if (vlantap->tap.minor == 0) in macvtap_device_event()
193 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
195 tap_free_minor(macvtap_major, &vlantap->tap); in macvtap_device_event()
198 if (tap_queue_resize(&vlantap->tap)) in macvtap_device_event()