]> git.baikalelectronics.ru Git - kernel.git/commit
tap: Abstract type of virtual interface from tap implementation
authorSainath Grandhi <sainath.grandhi@intel.com>
Sat, 11 Feb 2017 00:03:49 +0000 (16:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Feb 2017 01:59:41 +0000 (20:59 -0500)
commitdd3e302685c258da78c9bd2a80e4b1737551cef8
tree4602f5f435ad34f406ec980694daae4faf5d6119
parent9692ac6c5051f34df196fd525a46cd196b921f10
tap: Abstract type of virtual interface from tap implementation

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 used by
underlying virtual interface to take care of tx and rx accounting.

Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
drivers/net/macvtap_main.c
drivers/net/tap.c
include/linux/if_tap.h