• Home
  • Raw
  • Download

Lines Matching refs:tap

47 	struct tap_dev	  tap;  member
50 static void ipvtap_count_tx_dropped(struct tap_dev *tap) in ipvtap_count_tx_dropped() argument
52 struct ipvtap_dev *vlantap = container_of(tap, struct ipvtap_dev, tap); in ipvtap_count_tx_dropped()
58 static void ipvtap_count_rx_dropped(struct tap_dev *tap) in ipvtap_count_rx_dropped() argument
60 struct ipvtap_dev *vlantap = container_of(tap, struct ipvtap_dev, tap); in ipvtap_count_rx_dropped()
66 static void ipvtap_update_features(struct tap_dev *tap, in ipvtap_update_features() argument
69 struct ipvtap_dev *vlantap = container_of(tap, struct ipvtap_dev, tap); in ipvtap_update_features()
83 INIT_LIST_HEAD(&vlantap->tap.queue_list); in ipvtap_newlink()
88 vlantap->tap.tap_features = TUN_OFFLOADS; in ipvtap_newlink()
89 vlantap->tap.count_tx_dropped = ipvtap_count_tx_dropped; in ipvtap_newlink()
90 vlantap->tap.update_features = ipvtap_update_features; in ipvtap_newlink()
91 vlantap->tap.count_rx_dropped = ipvtap_count_rx_dropped; in ipvtap_newlink()
93 err = netdev_rx_handler_register(dev, tap_handle_frame, &vlantap->tap); in ipvtap_newlink()
106 vlantap->tap.dev = vlantap->vlan.dev; in ipvtap_newlink()
117 tap_del_queues(&vlan->tap); in ipvtap_dellink()
158 err = tap_get_minor(ipvtap_major, &vlantap->tap); in ipvtap_device_event()
162 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
166 tap_free_minor(ipvtap_major, &vlantap->tap); in ipvtap_device_event()
176 if (vlantap->tap.minor == 0) in ipvtap_device_event()
179 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
181 tap_free_minor(ipvtap_major, &vlantap->tap); in ipvtap_device_event()
184 if (tap_queue_resize(&vlantap->tap)) in ipvtap_device_event()