diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2019-12-11 10:58:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-12 17:07:05 -0800 |
commit | f74877a5457d34d604dba6dbbb13c4c05bac8b93 (patch) | |
tree | ef5cb41d438251c77045d52c24731f5a0c0ce0f9 /include/net/netlink.h | |
parent | 545a6822993f1228552097aa21a6dd9f90514e68 (diff) |
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>
Diffstat (limited to 'include/net/netlink.h')
0 files changed, 0 insertions, 0 deletions