Files
kernel_arpi/include/uapi/linux
Michal Kubecek f74877a545 rtnetlink: provide permanent hardware address in RTM_NEWLINK
Permanent hardware address of a network device was traditionally provided
via ethtool ioctl interface but as Jiri Pirko pointed out in a review of
ethtool netlink interface, rtnetlink is much more suitable for it so let's
add it to the RTM_NEWLINK message.

Add IFLA_PERM_ADDRESS attribute to RTM_NEWLINK messages unless the
permanent address is all zeros (i.e. device driver did not fill it). As
permanent address is not modifiable, reject userspace requests containing
IFLA_PERM_ADDRESS attribute.

Note: we already provide permanent hardware address for bond slaves;
unfortunately we cannot drop that attribute for backward compatibility
reasons.

v5 -> v6: only add the attribute if permanent address is not zero

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-12-12 17:07:05 -08:00
..
2019-03-07 18:32:01 -08:00
2019-09-19 14:22:44 +02:00
2019-10-09 22:31:14 -04:00
2019-09-25 17:51:39 -07:00
2019-08-02 14:44:02 +10:00
2019-09-16 10:18:01 -04:00
2019-06-14 15:00:51 +05:30
2019-03-27 13:30:07 -07:00
2019-08-12 19:33:50 -07:00
2019-12-04 19:44:14 -08:00
2019-09-08 15:37:04 +02:00
2019-08-19 13:04:45 -07:00
2019-05-28 21:37:30 -07:00
2019-11-28 08:54:36 -06:00
2019-10-02 20:32:27 -06:00
2019-07-30 20:34:34 +02:00
2019-11-13 12:15:34 -08:00
2019-09-18 20:17:50 +02:00
2019-08-01 21:49:46 +02:00