Lines Matching refs:tap

30 	struct tap_dev    tap;  member
55 static void macvtap_count_tx_dropped(struct tap_dev *tap) in macvtap_count_tx_dropped() argument
57 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_count_tx_dropped()
63 static void macvtap_count_rx_dropped(struct tap_dev *tap) in macvtap_count_rx_dropped() argument
65 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_count_rx_dropped()
71 static void macvtap_update_features(struct tap_dev *tap, in macvtap_update_features() argument
74 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_update_features()
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()
126 tap_del_queues(&vlantap->tap); in macvtap_dellink()
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()