Cannot shut down bond members / ports with OVS DPDK 2.9
Issue
Disclaimer: Links contained herein to external website(s) are provided for convenience only. Red Hat has not reviewed the links and is not responsible for the content or its availability. The inclusion of any link to an external website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.
Cannot shut down bond members / ports with OVS DPDK 2.9
With IXGBE, there seems to be no way to shut down a bond member (or NIC) from OVS DPDK:
ovs-ofctl mod-port br-link0 dpdk10 down
While this removes the LACP configuration from the port and reports it as down in OVS:
[root@overcloud-computeovsdpdk-0 ~]# ovs-ofctl mod-port br-link0 dpdk10 down
[root@overcloud-computeovsdpdk-0 ~]# ovs-appctl bond/show
---- dpdkbond0 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 911
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 1484 ms
lacp_status: negotiated
lacp_fallback_ab: false
active slave mac: aa:36:aa:e3:aa:ca(dpdk11)
slave dpdk10: disabled
may_enable: false
slave dpdk11: enabled
active slave
may_enable: true
hash 42: 1 kB load
On the switch, the port is up:
S4048-ON-sw(conf-if-te-1/19)#do show int status | grep 1/19
Te 1/19 Up 10000 Mbit Full --
And only the LACP config is removed:
Nov 1 23:48:17: %STKUNIT1-M:CP %LACP-5-PORT-GROUPED: PortChannel-001-Grouped: Interface Te 1/19 joined port-channel 1.
50w2d1h : SUPASSIST_EVT: Notified event, ID: 0x35000f
Nov 1 23:47:44: %STKUNIT1-M:CP %LACP-5-PORT-UNGROUPED: PortChannel-001-Ungrouped: Interface Te 1/19 exited port-channel 1.
The same is true for ovs-appctl netdev-dpdk/set-admin-state dpdk10 down
:
[root@overcloud-computeovsdpdk-0 ~]# ovs-appctl netdev-dpdk/set-admin-state dpdk10 down
OK
[root@overcloud-computeovsdpdk-0 ~]# ovs-appctl bond/show
---- dpdkbond0 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 911
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 6190 ms
lacp_status: negotiated
lacp_fallback_ab: false
active slave mac: aa:36:aa:e3:aa:ca(dpdk11)
slave dpdk10: disabled
may_enable: false
slave dpdk11: enabled
active slave
may_enable: true
hash 42: 1 kB load
But the port remains up on the switch:
S4048-ON-sw(conf-if-te-1/19)#do show int status | grep 1/19
Te 1/19 Up 10000 Mbit Full --
S4048-ON-sw(conf-if-te-1/19)#
Environment
openvswitch-2.9.0-19
openvswitch-2.9.0-54
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.