mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 03:44:27 +08:00
b4de6c49e5
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 <mstarovoitov@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
---|---|---|
.. | ||
hw_atl | ||
hw_atl2 | ||
macsec | ||
aq_cfg.h | ||
aq_common.h | ||
aq_drvinfo.c | ||
aq_drvinfo.h | ||
aq_ethtool.c | ||
aq_ethtool.h | ||
aq_filters.c | ||
aq_filters.h | ||
aq_hw_utils.c | ||
aq_hw_utils.h | ||
aq_hw.h | ||
aq_macsec.c | ||
aq_macsec.h | ||
aq_main.c | ||
aq_main.h | ||
aq_nic.c | ||
aq_nic.h | ||
aq_pci_func.c | ||
aq_pci_func.h | ||
aq_phy.c | ||
aq_phy.h | ||
aq_ptp.c | ||
aq_ptp.h | ||
aq_ring.c | ||
aq_ring.h | ||
aq_rss.h | ||
aq_utils.h | ||
aq_vec.c | ||
aq_vec.h | ||
Makefile |