RE: [PATCHv2 3/7] TAP: Tap character device creation/destroy API

2017-01-19 Thread Grandhi, Sainath
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, January 18, 2017 1:27 PM > To: Grandhi, Sainath > Cc: netdev@vger.kernel.org; mah...@bandewar.net; linux- > ker...@vger.kernel.org > Subject: Re: [PATCHv2 3/7] TAP: Tap char

Re: [PATCHv2 3/7] TAP: Tap character device creation/destroy API

2017-01-18 Thread David Miller
From: Sainath Grandhi Date: Tue, 17 Jan 2017 16:03:02 -0800 > +int tap_create_cdev(struct cdev *tap_cdev, > + dev_t *tap_major, const char *device_name) > +{ > + int err; > + > + err = alloc_chrdev_region(tap_major, 0, TAP_NUM_DEVS, device_name); > + > + if (err) > +

[PATCHv2 3/7] TAP: Tap character device creation/destroy API

2017-01-17 Thread Sainath Grandhi
This patch provides tap device create/destroy APIs in tap.c. Signed-off-by: Sainath Grandhi --- drivers/net/macvtap_main.c | 29 +++-- drivers/net/tap.c | 63 ++ include/linux/if_tap.h | 5 +++- 3 files changed, 65 inserti