summaryrefslogtreecommitdiffstats
path: root/include/linux/if_tap.h
diff options
context:
space:
mode:
authorSainath Grandhi2017-02-11 01:03:50 +0100
committerDavid S. Miller2017-02-12 02:59:41 +0100
commitd9f1f61c0801a73ff36d416a7ede54229b231e1d (patch)
tree2f9970b37ac99da534f7ca58b6b67ee880ead3cd /include/linux/if_tap.h
parenttap: Abstract type of virtual interface from tap implementation (diff)
downloadkernel-qcow2-linux-d9f1f61c0801a73ff36d416a7ede54229b231e1d.tar.gz
kernel-qcow2-linux-d9f1f61c0801a73ff36d416a7ede54229b231e1d.tar.xz
kernel-qcow2-linux-d9f1f61c0801a73ff36d416a7ede54229b231e1d.zip
tap: Extending tap device create/destroy APIs
Extending tap APIs get/free_minor and create/destroy_cdev to handle more than one type of virtual interface. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_tap.h')
-rw-r--r--include/linux/if_tap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/if_tap.h b/include/linux/if_tap.h
index 75031e5d0a65..362e71c16efb 100644
--- a/include/linux/if_tap.h
+++ b/include/linux/if_tap.h
@@ -65,8 +65,8 @@ struct tap_queue {
rx_handler_result_t tap_handle_frame(struct sk_buff **pskb);
void tap_del_queues(struct tap_dev *tap);
-int tap_get_minor(struct tap_dev *tap);
-void tap_free_minor(struct tap_dev *tap);
+int tap_get_minor(dev_t major, struct tap_dev *tap);
+void tap_free_minor(dev_t major, struct tap_dev *tap);
int tap_queue_resize(struct tap_dev *tap);
int tap_create_cdev(struct cdev *tap_cdev,
dev_t *tap_major, const char *device_name);