On Fri, 24 Aug 2018 15:25:34 +0100 Alejandro Lucero <alejandro.luc...@netronome.com> wrote:
> The original patch assumes all NICs can safely change or set the MAC > in any case. However, this is not always true. NFP depends on the firmware > capabilities and this is not always supported. There are other NICs with > this same limitation, although, as far as I know, not in DPDK. Linux kernel > has a IFF_LIVE_ADDR_CHANGE flag and two NICs are checking this flag for > allowing or not live MAC changes The semantic in Linux is different than what I think you are trying to do. Some devices can not change MAC address at all because of hardware or hypervisor restrictions. Other devices can not change address while device is up (started in DPDK API). With Linux the policy was to assume by default device could change address while up. And then let a few virtual devices allow it.