[dpdk-stable] [dpdk-dev] [PATCH v3 0/2] support MAC changes when no live changes allowed

Stephen Hemminger stephen at networkplumber.org
Fri Aug 24 16:46:27 CEST 2018


On Fri, 24 Aug 2018 15:25:34 +0100
Alejandro Lucero <alejandro.lucero at 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.


More information about the stable mailing list