netdevice: Add a function to check macvlan port
authorMahesh Bandewar <maheshb@google.com>
Sat, 6 Dec 2014 23:53:04 +0000 (15:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 21:10:06 +0000 (16:10 -0500)
commit2f33e7d59cb09d9b20d6648086b314f0ba61fb03
treec1fe6ccbe35cf04b8c77bea967c293edc349a5d6
parentdbfc4fb7d578d4f224faa6b60deb40804dfdc1b1
netdevice: Add a function to check macvlan port

Similar to a check for macvlan device, netif_is_macvlan(), add
another function to check if a device is used as macvlan port.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h