On Mon, May 18, 2020 at 10:58 AM Flavio Leitner <[email protected]> wrote:
> On Mon, May 18, 2020 at 10:19:06AM -0700, Ravi Kerur wrote: > > To answer your question why I need to change mac address, we recently > moved > > from kernel/bond to ovs-dpdk/bond with 2 members. With kernel/bond, all 3 > > interfaces (bond + 2 members) had same mac address and if one member goes > > down traffic was not hit. With ovs/dpdk bond, bridge and active-slave > share > > the same mac address. When active-slave link goes down traffic takes > > 60seconds hit. > > That's odd because the OVS should be sending ARP learning packets (RARP) to > tell the network about the change and prevent traffic hit. > > Do you see the packet going out on the backup slave when it becomes active? > I overlooked RARP functionality, I am currently debugging at the switch side, will check this as well. > > > Kernel/bond has bond_mode=4 and ovs/dpdk has balance-tcp configured. > > In that case we need to know if LACP is negotiated or not. > lacp is negotiated. ovs-appctl bond/show ---- dpdkbond ---- bond_mode: balance-tcp bond may use recirculation: yes, Recirc-ID : 1 bond-hash-basis: 0 updelay: 0 ms downdelay: 0 ms next rebalance: 8487 ms lacp_status: negotiated lacp_fallback_ab: false active slave mac: 90:e2:ba:a0:e6:10(dpdk-ens11f0) slave dpdk-enp4s0f0: enabled may_enable: true slave dpdk-ens11f0: enabled active slave may_enable: true ovs-appctl lacp/show ---- dpdkbond ---- status: active negotiated sys_id: 90:e2:ba:a0:e6:10 sys_priority: 65534 aggregation key: 1 lacp_time: slow slave: dpdk-enp4s0f0: current attached port_id: 1 port_priority: 65535 may_enable: true actor sys_id: 90:e2:ba:a0:e6:10 actor sys_priority: 65534 actor port_id: 1 actor port_priority: 65535 actor key: 1 actor state: activity aggregation synchronized collecting distributing partner sys_id: 02:1c:73:f2:ec:71 partner sys_priority: 32768 partner port_id: 40 partner port_priority: 32768 partner key: 21 partner state: activity aggregation synchronized collecting distributing slave: dpdk-ens11f0: current attached port_id: 2 port_priority: 65535 may_enable: true actor sys_id: 90:e2:ba:a0:e6:10 actor sys_priority: 65534 actor port_id: 2 actor port_priority: 65535 actor key: 1 actor state: activity aggregation synchronized collecting distributing partner sys_id: 02:1c:73:f2:ec:71 partner sys_priority: 32768 partner port_id: 32808 partner port_priority: 32768 partner key: 21 partner state: activity aggregation synchronized collecting distributing > fbl > > > > > > > Thanks, > > Ravi > > > > > > > > >-----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 > > -- > fbl > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
