Re: [PATCHv2 4/7] TAP: Abstract type of virtual interface from tap implementation

2017-01-18 Thread David Miller
From: Sainath Grandhi Date: Tue, 17 Jan 2017 16:03:03 -0800 > @@ -46,22 +51,52 @@ static struct cdev macvtap_cdev; > #define TUN_OFFLOADS (NETIF_F_HW_CSUM | NETIF_F_TSO_ECN | NETIF_F_TSO | \ > NETIF_F_TSO6 | NETIF_F_UFO) > > +static void macvtap_count_tx_dropped(struct tap_

[PATCHv2 4/7] TAP: Abstract type of virtual interface from tap implementation

2017-01-17 Thread Sainath Grandhi
macvlan object is re-structured to hold tap related elements in a separate entity, tap_dev. Upon NETDEV_REGISTER device_event, tap_dev is registered with idr and fetched again on tap_open. Few of the tap functions are modified to accepted tap_dev as argument. tap_dev object includes callbacks to be