Hi,
I’m experimenting with ovs offloading and a connect-lx 4 card, and after all configuration when I start udp traffic between 8 guests I get in ovs-vswitchd logfile:
2018-10-02T13:42:05.882Z|00007|dpif_netlink(handler54)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:42:05.883Z|00003|dpif_netlink(handler46)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:42:05.883Z|00004|dpif_netlink(handler46)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.460Z|00001|dpif_netlink(handler67)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.460Z|00002|dpif_netlink(handler67)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.552Z|00001|dpif_netlink(handler61)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.552Z|00002|dpif_netlink(handler61)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.569Z|00001|dpif_netlink(handler49)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.569Z|00002|dpif_netlink(handler49)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.647Z|00001|dpif_netlink(handler47)|ERR|failed to offload flow: Invalid argument
2018-10-02T13:43:16.648Z|00002|dpif_netlink(handler47)|ERR|failed to offload flow: Invalid argument
Nic is set to switchdev mode. All netdevice representors are attached to a single bridge.
[root@localhost ~]# devlink dev eswitch show pci/0000:18:00.0
pci/0000:18:00.0: mode switchdev inline-mode link encap enable
[root@localhost ~]# ethtool -i enp24s0
driver: mlx5_core
version: 5.0-0
firmware-version: 14.23.1020 (MT_2410110004)
expansion-rom-version:
bus-info: 0000:18:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes
[root@localhost ~]# cat /proc/version
Linux version **4.16.3-**301.fc28.x86_64 (mockbuild@bkernel02.phx2.fedoraproject.org mailto:mockbuild@bkernel02.phx2.fedoraproject.org ) (gcc version 8.0.1 20180324 (Red Hat 8.0.1-0.20) (GCC)) #1 SMP Mon Apr 23 21:59:58 UTC 2018
[root@localhost ~]# rpm -qi openvswitch
Name : openvswitch
Version : 2.8.1
Release : 2.fc28
Architecture: x86_64
Install Date: Tue 25 Sep 2018 12:04:09 PM CEST
Group : Unspecified
Size : 25043824
License : ASL 2.0 and LGPLv2+ and SISSL
Signature : RSA/SHA256, Fri 09 Feb 2018 11:31:26 AM CET, Key ID e08e7e629db62fb1
Source RPM : openvswitch-2.8.1-2.fc28.src.rpm
Build Date : Thu 08 Feb 2018 06:58:20 PM CET
Build Host : buildhw-09.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://openvswitch.org http://openvswitch.org
Summary : Open vSwitch daemon/database/utilities
Description :
Open vSwitch provides standard network bridging functions and
support for the OpenFlow protocol for remote per-flow control of
traffic.
[root@localhost ~]# ovs-vsctl show
50e8281e-d8c6-4d1b-87e6-e2495aa9aea9
Bridge databr
Port “eth4”
Interface “eth4”
Port “eth6”
Interface “eth6”
Port databr
Interface databr
type: internal
Port “eth5”
Interface “eth5”
Port “eth1”
Interface “eth1”
Port “eth3”
Interface “eth3”
Port “eth2”
Interface “eth2”
Port “eth7”
Interface “eth7”
Port “eth0”
Interface “eth0”
ovs_version: “2.8.1”
[root@localhost ~]# sudo ethtool -k enp24s0
…
hw-tc-offload: on
Am I missing some configuration?