Hi Roni,

On Sun, May 17, 2020 at 2:18 AM Roni Bar Yanai <[email protected]> wrote:

> 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?
>


Thank for your response. I did skim through the code and found

iface_set_mac->netdev_set_etheraddr->netdev->netdev_class->set_etheraddr->
For DPDK netdev netdev_dpdk_set_etheraddr

Though the code in 2.13 is different from the patch. I assumed support is
there and I was not setting it the right way.

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.

Kernel/bond has bond_mode=4 and ovs/dpdk has balance-tcp configured.

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&amp;data=02%7C01%7Croniba%40mellanox.com%7C17acfbf576d840852ac40
> >8d7f76f4355%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C63724992956
> >6354578&amp;sdata=UKJmh36BntaRjllz551sBv0ah6O4sF%2BO8d6IGtr3xwM%3D&
> >amp;reserved=0
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to