In rhel9.2 I am trying to Configure the bridge, physical and virtual (vhost) ports, but running into this error

Posted on

I have installed dpdk and open-Vswitch building from source code

[root@localhost ~]# ovs-vswitchd --version
ovs-vswitchd (Open vSwitch) 3.1.2
DPDK 22.11.2
[root@localhost ~]# ovs-vsctl get Open_vSwitch . dpdk_version
"DPDK 22.11.2"
[root@localhost ~]# ovs-vsctl get Open_vSwitch . dpdk_initialized
true
[root@localhost ~]#


Now when I try to Configure the bridge, physical and virtual (vhost) ports, running into this error

[root@localhost ~]# ovs-vsctl add-br ovs-br1 -- set bridge ovs-br1 datapath_type=netdev
[root@localhost ~]# ovs-vsctl add-port ovs-br1 dpdk-p1 -- set Interface dpdk-p1 type=dpdk options:dpdk-devargs=0000:02:07.0
ovs-vsctl: Error detected while setting up 'dpdk-p1': could not add network device dpdk-p1 to ofproto (Invalid argument). See ovs-vswitchd log for details.
ovs-vsctl: The default log directory is "/usr/local/var/log/openvswitch".
[root@localhost ~]#


[root@localhost ~]# ovs-vsctl show
84c6a319-b472-4d39-8dc5-ddbeb00b34e9
Bridge ovs-br1
datapath_type: netdev
Port ovs-br1
Interface ovs-br1
type: internal
Port dpdk-p1
Interface dpdk-p1
type: dpdk
options: {dpdk-devargs="0000:02:07.0"}
error: "could not add network device dpdk-p1 to ofproto (Invalid argument)"
ovs_version: "3.1.2"
[root@localhost ~]#


when I checked log, below is the error

2024-03-05T05:24:45.381Z|217002|dpdk|ERR|vmxnet3_dev_start(): Device activation: UNSUCCESSFUL
2024-03-05T05:24:45.381Z|217003|netdev_dpdk|ERR|Interface dpdk-p1 start error: Invalid argument
2024-03-05T05:24:45.381Z|217004|dpif_netdev|ERR|Failed to set interface dpdk-p1 new configuration

Could anyone please help me o resolve this. Thanks for the help!

Responses