rtnetlink: provide api for getting and setting slave info
authorJiri Pirko <jiri@resnulli.us>
Wed, 22 Jan 2014 08:05:55 +0000 (09:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 05:57:05 +0000 (21:57 -0800)
commitba7d49b1f0f8e5f24294a880ed576964059af5ef
treedbd5c9c4418d4a72fe44a5f9af0e51e0d2be747a
parentdf7dbcbbafc0b8f3fb31a40c6f3c4a7e15cb0b40
rtnetlink: provide api for getting and setting slave info

Recent patch
bonding: add netlink attributes to slave link dev (1d3ee88ae0d6)

Introduced yet another device specific way to access slave information
over rtnetlink. There is one already there for bridge.

This patch introduces generic way to do this, for getting and setting
info as well by extending link_ops. Later on, this new interface will
be used for bridge ports as well.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h
include/uapi/linux/if_link.h
net/core/rtnetlink.c