Hi Ravi, The patch only configures internal ports of OVS, other ports are blocked (you can look at the code). We currently looking for a solution for setting the MAC in case of switchmod when VF is in passthrough and VM is untrusted. why do you need to change the mac address on the fly?
>-----Original Message----- >From: dev <[email protected]> On Behalf Of Ravi Kerur >Sent: Wednesday, May 13, 2020 9:56 PM >To: ovs-dev <[email protected]> >Subject: [ovs-dev] OvS-DPDK change interface MAC > >Hello OvS-DPDK team, > >Is there a way to change interface mac address for DPDK interfaces? >Interfaces are part of LACP bond. > >I tried following commands and they don't seem to work. > >ovs-vsctl set interface <dpdk-intf-name> other- >config:hwaddr=\"00:11:11:11:11:01\" >ovs-vsctl set interface <dpdk-intf-name> mac=\"00:00:00:01:01:01\" > >No error messages in vswitchd log. Logs shown below > > >ovs-ofctl dump-ports-desc br-phy >OFPST_PORT_DESC reply (xid=0x2): > 1(dpdk-enp4s0f0): addr:a0:36:9f:5d:af:58 > config: 0 > state: 0 > current: 10GB-FD AUTO_NEG > speed: 10000 Mbps now, 0 Mbps max > 2(dpdk-ens11f0): addr:90:e2:ba:a0:e6:10 > config: 0 > state: 0 > current: 10GB-FD AUTO_NEG > speed: 10000 Mbps now, 0 Mbps max > LOCAL(br-phy): addr:a0:36:9f:5d:af:58 > config: 0 > state: 0 > current: 10MB-FD COPPER > speed: 10 Mbps now, 0 Mbps max > >/****Execute command***/ >ovs-vsctl set interface dpdk-ens11f0 >other-config:hwaddr=\"00:11:11:11:11:01\" > >/***Nothing changed***/ >ovs-ofctl dump-ports-desc br-phy >OFPST_PORT_DESC reply (xid=0x2): > 1(dpdk-enp4s0f0): addr:a0:36:9f:5d:af:58 > config: 0 > state: 0 > current: 10GB-FD AUTO_NEG > speed: 10000 Mbps now, 0 Mbps max > 2(dpdk-ens11f0): addr:90:e2:ba:a0:e6:10 > config: 0 > state: 0 > current: 10GB-FD AUTO_NEG > speed: 10000 Mbps now, 0 Mbps max > LOCAL(br-phy): addr:a0:36:9f:5d:af:58 > config: 0 > state: 0 > current: 10MB-FD COPPER > speed: 10 Mbps now, 0 Mbps max > >Thanks, >Ravi >_______________________________________________ >dev mailing list >[email protected] >https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.open >vswitch.org%2Fmailman%2Flistinfo%2Fovs- >dev&data=02%7C01%7Croniba%40mellanox.com%7C17acfbf576d840852ac40 >8d7f76f4355%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C63724992956 >6354578&sdata=UKJmh36BntaRjllz551sBv0ah6O4sF%2BO8d6IGtr3xwM%3D& >amp;reserved=0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
