aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2013-10-21 21:28:02 +0000
committerDavid S. Miller <[email protected]>2013-10-22 23:22:09 +0000
commit47d4ab91e4472723f181075c81627374ca86816c (patch)
treeb8f3811fd8c623012acecf0feee68290b05ea1a0 /lib/kobject.c
parentbonding: move bond-specific init after enslave happens (diff)
downloadkernel-47d4ab91e4472723f181075c81627374ca86816c.tar.gz
kernel-47d4ab91e4472723f181075c81627374ca86816c.zip
macvlan: resolve ENOENT errors on creation
After the commit below attempting to create macvlan devices was resulting in ENOENT errors, # ip link add link p3p2 type macvlan RTNETLINK answers: Invalid argument This happens because netdev_upper_dev_link() is called before register_netdevice() in the macvlan code. Through a call chain this results in a call to __netdev_adjacent_dev_insert() and finally a sysfs_create_link(). This requires the kobject of the macvlan to be registered which is done in register_netdevice(). If there is no kobject which is the case here the ENOENT error is seen on the command line. To resolve this move the netdev_upper_dev_link() call below the register_netdevice() call. This aligns with vlan driver flow. Regression introduced here, commit 5831d66e8097aedfa3bc35941cf265ada2352317 Author: Veaceslav Falico <[email protected]> Date: Wed Sep 25 09:20:32 2013 +0200 net: create sysfs symlinks for neighbour devices CC: Veaceslav Falico <[email protected]> CC: Neil Horman <[email protected]> Signed-off-by: John Fastabend <[email protected]> Acked-by: Veaceslav Falico <[email protected]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions