linux/net/ethtool
Michal Kubecek 6b08d6c146 ethtool: support for netlink notifications
Add infrastructure for ethtool netlink notifications. There is only one
multicast group "monitor" which is used to notify userspace about changes
and actions performed. Notification messages (types using suffix _NTF)
share the format with replies to GET requests.

Notifications are supposed to be broadcasted on every configuration change,
whether it is done using the netlink interface or ioctl one. Netlink SET
requests only trigger a notification if some data is actually changed.

To trigger an ethtool notification, both ethtool netlink and external code
use ethtool_notify() helper. This helper requires RTNL to be held and may
sleep. Handlers sending messages for specific notification message types
are registered in ethnl_notify_handlers array. As notifications can be
triggered from other code, ethnl_ok flag is used to prevent an attempt to
send notification before genetlink family is registered.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-12-27 16:40:01 -08:00
..
bitset.c ethtool: netlink bitset handling 2019-12-27 16:40:01 -08:00
bitset.h ethtool: netlink bitset handling 2019-12-27 16:40:01 -08:00
common.c ethtool: provide link mode names as a string set 2019-12-12 17:07:05 -08:00
common.h ethtool: provide link mode names as a string set 2019-12-12 17:07:05 -08:00
ioctl.c net: ethtool: Use the PHY time stamping interface. 2019-12-25 19:51:33 -08:00
Makefile ethtool: netlink bitset handling 2019-12-27 16:40:01 -08:00
netlink.c ethtool: support for netlink notifications 2019-12-27 16:40:01 -08:00
netlink.h ethtool: helper functions for netlink interface 2019-12-27 16:40:01 -08:00