DPDK team, Kindly let me know if there is a way to change Mac address of dpdk ports? I am using 2.13.90/19.11 combination.
I looked at following patch and I used the command ovs-vsctl set Interface <dpdk interface> mac="xx:xx:xx:xx:xx:xx" https://patchwork.ozlabs.org/project/openvswitch/patch/[email protected]/ ovs-vsctl set Interface dpdk-enp24s0f0 mac="11:11:11:11:11:11" ovs-vsctl: 11:11:11:11:11:11: unexpected ":" parsing set of up to 1 strings ovs-vsctl set Interface dpdk-enp24s0f0 mac=\"11:11:11:11:11:11\" (No error, but MAC address not changed) ovs-ofctl dump-ports-desc br-phy OFPST_PORT_DESC reply (xid=0x2): 1(dpdk-enp24s0f0): addr:f8:f2:1e:24:04:94 config: 0 state: 0 current: 10GB-FD AUTO_NEG speed: 10000 Mbps now, 0 Mbps max 2(dpdk-enp179s0f0): addr:68:05:ca:82:37:50 config: 0 state: 0 current: 10GB-FD AUTO_NEG speed: 10000 Mbps now, 0 Mbps max LOCAL(br-phy): addr:f8:f2:1e:24:04:94 config: 0 state: 0 current: 10MB-FD COPPER speed: 10 Mbps now, 0 Mbps max Thanks. On Wed, May 13, 2020 at 11:55 AM Ravi Kerur <[email protected]> wrote: > 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://mail.openvswitch.org/mailman/listinfo/ovs-dev
