diff options
author | Michal Kubecek <[email protected]> | 2019-12-11 10:58:14 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-12-12 17:07:05 -0800 |
commit | f74877a5457d34d604dba6dbbb13c4c05bac8b93 (patch) | |
tree | ef5cb41d438251c77045d52c24731f5a0c0ce0f9 /tools/perf/scripts/python/netdev-times.py | |
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 <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions