[ovs-dev] [PATCH] netdev-dpdk: Add ability to set MAC address.

Ilya Maximets i.maximets at ovn.org
Wed Oct 30 18:06:42 UTC 2019

On 30.10.2019 18:21, Ben Pfaff wrote:
> On Wed, Oct 30, 2019 at 04:40:18PM +0100, Ilya Maximets wrote:
>> It is possible to set MAC address for DPDK ports by calling
>> rte_eth_dev_default_mac_addr_set().  For some reason OVS didn't
>> use this functionality avoiding real MAC address configuration.
>> With this change following command will result in real MAC address
>> update on HW NIC:
>>    ovs-vsctl set Interface <dpdk interface> mac="xx:xx:xx:xx:xx:xx"
>> Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
> I'm not sure why this treats -ENOTSUP as success.

You're right. This is a mistake. I had a thought that it'll be
inconvenient to report an error in this case, because some DPDK
virtual devices doesn't implement this functionality, but I
forgot that there will be no attempts to configure MAC if user
didn't set it explicitly.

I'll send v2.

Best regards, Ilya Maximets.

More information about the dev mailing list