macvlan: introduce macvlan_dev_real_dev() helper function
authorMichal Kubeček <mkubecek@suse.cz>
Fri, 15 Nov 2013 05:18:40 +0000 (06:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2013 22:55:48 +0000 (17:55 -0500)
commitbe9eac48274a2d9b142d6dd8567b9b2362939346
treeeb43db7c1721c7b40d7d9e7ec9958b10bcaf3d4a
parentf9de11a165943a55e0fbda714caf60eaeb276a42
macvlan: introduce macvlan_dev_real_dev() helper function

Introduce helper function macvlan_dev_real_dev which returns the
underlying device of a macvlan device, similar to vlan_dev_real_dev()
for 802.1q VLAN devices.

v2: IFF_MACVLAN flag and equivalent of is_macvlan_dev() were
introduced in the meantime

v3: do BUG() if compiled without macvlan support

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_macvlan.h