• Home
  • Raw
  • Download

Lines Matching refs:tap

48 	struct tap_dev	  tap;  member
51 static void ipvtap_count_tx_dropped(struct tap_dev *tap) in ipvtap_count_tx_dropped() argument
53 struct ipvtap_dev *vlantap = container_of(tap, struct ipvtap_dev, tap); in ipvtap_count_tx_dropped()
59 static void ipvtap_count_rx_dropped(struct tap_dev *tap) in ipvtap_count_rx_dropped() argument
61 struct ipvtap_dev *vlantap = container_of(tap, struct ipvtap_dev, tap); in ipvtap_count_rx_dropped()
67 static void ipvtap_update_features(struct tap_dev *tap, in ipvtap_update_features() argument
70 struct ipvtap_dev *vlantap = container_of(tap, struct ipvtap_dev, tap); in ipvtap_update_features()
84 INIT_LIST_HEAD(&vlantap->tap.queue_list); in ipvtap_newlink()
89 vlantap->tap.tap_features = TUN_OFFLOADS; in ipvtap_newlink()
90 vlantap->tap.count_tx_dropped = ipvtap_count_tx_dropped; in ipvtap_newlink()
91 vlantap->tap.update_features = ipvtap_update_features; in ipvtap_newlink()
92 vlantap->tap.count_rx_dropped = ipvtap_count_rx_dropped; in ipvtap_newlink()
94 err = netdev_rx_handler_register(dev, tap_handle_frame, &vlantap->tap); in ipvtap_newlink()
107 vlantap->tap.dev = vlantap->vlan.dev; in ipvtap_newlink()
118 tap_del_queues(&vlan->tap); in ipvtap_dellink()
159 err = tap_get_minor(ipvtap_major, &vlantap->tap); in ipvtap_device_event()
163 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
167 tap_free_minor(ipvtap_major, &vlantap->tap); in ipvtap_device_event()
177 if (vlantap->tap.minor == 0) in ipvtap_device_event()
180 devt = MKDEV(MAJOR(ipvtap_major), vlantap->tap.minor); in ipvtap_device_event()
182 tap_free_minor(ipvtap_major, &vlantap->tap); in ipvtap_device_event()
185 if (tap_queue_resize(&vlantap->tap)) in ipvtap_device_event()