diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2019-12-11 12:58:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-13 04:07:05 +0300 |
commit | f74877a5457d34d604dba6dbbb13c4c05bac8b93 (patch) | |
tree | ef5cb41d438251c77045d52c24731f5a0c0ce0f9 /net/wireless | |
parent | 545a6822993f1228552097aa21a6dd9f90514e68 (diff) | |
download | linux-f74877a5457d34d604dba6dbbb13c4c05bac8b93.tar.xz |
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 'net/wireless')
0 files changed, 0 insertions, 0 deletions