Lines Matching refs:tap

30 	struct tap_dev    tap;  member
54 static void macvtap_count_tx_dropped(struct tap_dev *tap) in macvtap_count_tx_dropped() argument
56 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_count_tx_dropped()
62 static void macvtap_count_rx_dropped(struct tap_dev *tap) in macvtap_count_rx_dropped() argument
64 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_count_rx_dropped()
70 static void macvtap_update_features(struct tap_dev *tap, in macvtap_update_features() argument
73 struct macvtap_dev *vlantap = container_of(tap, struct macvtap_dev, tap); in macvtap_update_features()
87 INIT_LIST_HEAD(&vlantap->tap.queue_list); in macvtap_newlink()
92 vlantap->tap.tap_features = TUN_OFFLOADS; in macvtap_newlink()
97 vlantap->tap.count_tx_dropped = macvtap_count_tx_dropped; in macvtap_newlink()
98 vlantap->tap.count_rx_dropped = macvtap_count_rx_dropped; in macvtap_newlink()
99 vlantap->tap.update_features = macvtap_update_features; in macvtap_newlink()
101 err = netdev_rx_handler_register(dev, tap_handle_frame, &vlantap->tap); in macvtap_newlink()
114 vlantap->tap.dev = vlantap->vlan.dev; in macvtap_newlink()
125 tap_del_queues(&vlantap->tap); in macvtap_dellink()
171 err = tap_get_minor(macvtap_major, &vlantap->tap); in macvtap_device_event()
175 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
179 tap_free_minor(macvtap_major, &vlantap->tap); in macvtap_device_event()
189 if (vlantap->tap.minor == 0) in macvtap_device_event()
192 devt = MKDEV(MAJOR(macvtap_major), vlantap->tap.minor); in macvtap_device_event()
194 tap_free_minor(macvtap_major, &vlantap->tap); in macvtap_device_event()
197 if (tap_queue_resize(&vlantap->tap)) in macvtap_device_event()