aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorMark Starovoytov <[email protected]>2020-05-09 09:47:00 +0300
committerJakub Kicinski <[email protected]>2020-05-09 11:47:25 -0700
commitb4de6c49e569c7ca91bf0d4c25cdb6eeca9c9529 (patch)
treefa4de5589f90228f431513a5daab93e2798e067d /tools/perf/scripts/python/sctop.py
parent097d638cf4e19be208d26c6bbbca7f8da348294a (diff)
net: atlantic: unify MAC generation
This patch unifies invalid MAC address handling with other drivers. Basically we've switched to using standard APIs (is_valid_ether_addr / eth_hw_addr_random) where possible. It's worth noting that some of engineering Aquantia NICs might be provisioned with a partially zeroed out MAC, which is still invalid, but not caught by is_valid_ether_addr(), so we've added a special handling for this case. Also adding a warning in case of fallback to random MAC, because this shouldn't be needed on production NICs, they should all be provisioned with unique MAC. NB! Default systemd/udevd configuration is 'MACAddressPolicy=persistent'. This causes MAC address to be persisted across driver reloads and reboots. We had to change it to 'none' for verification purposes. Signed-off-by: Mark Starovoytov <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions