summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVeaceslav Falico <vfalico@redhat.com>2013-09-25 09:20:09 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-26 16:02:04 -0400
commit402dae9614557296e84543008a8e582c28fb1db3 (patch)
tree80d4da7981cb8f5f68340e11d2f6449117a15794 /scripts
parent5249dec7380cb64928d2ae6201028b4da1dceb1e (diff)
downloadop-kernel-dev-402dae9614557296e84543008a8e582c28fb1db3.zip
op-kernel-dev-402dae9614557296e84543008a8e582c28fb1db3.tar.gz
net: add netdev_adjacent->private and allow to use it
Currently, even though we can access any linked device, we can't attach anything to it, which is vital to properly manage them. To fix this, add a new void *private to netdev_adjacent and functions setting/getting it (per link), so that we can save, per example, bonding's slave structures there, per slave device. netdev_master_upper_dev_link_private(dev, upper_dev, private) links dev to upper dev and populates the neighbour link only with private. netdev_lower_dev_get_private{,_rcu}() returns the private, if found. CC: "David S. Miller" <davem@davemloft.net> CC: Eric Dumazet <edumazet@google.com> CC: Jiri Pirko <jiri@resnulli.us> CC: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Veaceslav Falico <vfalico@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud