OSDN Git Service

batman-adv: Prepare infrastructure for newlink settings
authorSven Eckelmann <sven@narfation.org>
Sun, 11 Oct 2020 10:25:23 +0000 (12:25 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 4 Dec 2020 07:40:52 +0000 (08:40 +0100)
commit128254ceea6ffe59300d3cca6fc83b842048f4c4
tree9d4c578eebd9b1627ebf491dac70d2edfa58db02
parentfcd193e1dfa6842e2783b04d98345767fe99cf31
batman-adv: Prepare infrastructure for newlink settings

The batadv generic netlink family can be used to retrieve the current state
and set various configuration settings. But there are also settings which
must be set before the actual interface is created.

The rtnetlink already uses IFLA_INFO_DATA to allow net_device families to
transfer such configurations. The minimal required functionality for this
is now available for the batadv rtnl_link_ops. Also a new IFLA class of
attributes will be attached to it because rtnetlink only allows 51
different attributes but batadv_nl_attrs already contains 62 attributes.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
include/uapi/linux/batman_adv.h
net/batman-adv/soft-interface.c