[ovs-discuss] [ovn/ovs] OVS hardware offloading

Frode Nordahl frode.nordahl at canonical.com
Wed Jul 14 09:32:13 UTC 2021


Hello Ammad,

On Wed, Jul 14, 2021 at 9:39 AM Ammad Syed <syedammad83 at gmail.com> wrote:
> I am using OVN with openstack neutron on ubuntu 20.04. I want to enable hardware offloading on ovs. I have used below command to to enable offload.
>
> ovs-vsctl set Open_vSwitch . other_config:hw-offload=true
>
> By reviewing below URL.
>
> https://www.openvswitch.org/support/ovscon2019/day2/0951-hw_offload_ovs_con_19-Oz-Mellanox.pdf
>
> I just want to enable kernel offload using tc.
>
> I am using Broadcom BCM57504 NetXtreme-E and below firmware and driver details.
>
> driver: bnxt_en
> version: 1.10.0
> firmware-version: 218.0.169.2/pkg 21.80.16.95
> expansion-rom-version:
> bus-info: 0000:63:00.0
> supports-statistics: yes
> supports-test: yes
> supports-eeprom-access: yes
> supports-register-dump: no
> supports-priv-flags: no

Which kernel version are you using, and which version of OVN?

> I have checked with ethtool -k with on NIC, hw-tc-offload: on  is on.
>
> When I have enabled offloading. I have started seeing below errors.
>
> [ 1197.506839] bnxt_en 0000:63:00.0 eth0-tor1: hwrm req_type 0x103 seq id 0x1282 error 0x2
> [ 1197.507086] bnxt_en 0000:63:00.0 eth0-tor1: Error: bnxt_tc_add_flow: cookie=0xffff9fe730da8000 error=-22
> [ 1197.516042] bnxt_en 0000:63:00.1 eth0-tor2: hwrm req_type 0x103 seq id 0x127f error 0x2
> [ 1197.525717] bnxt_en 0000:63:00.1 eth0-tor2: Error: bnxt_tc_add_flow: cookie=0xffff9fe730da8000 error=-22
> [ 1227.522630] bnxt_en 0000:63:00.0 eth0-tor1: hwrm req_type 0x103 seq id 0x12f7 error 0x2
> [ 1227.531524] bnxt_en 0000:63:00.0 eth0-tor1: Error: bnxt_tc_add_flow: cookie=0xffff9fe731a28800 error=-22
> [ 1227.540403] bnxt_en 0000:63:00.1 eth0-tor2: hwrm req_type 0x103 seq id 0x12f4 error 0x2
> [ 1227.548676] bnxt_en 0000:63:00.1 eth0-tor2: Error: bnxt_tc_add_flow: cookie=0xffff9fe731a28800 error=-22
> [ 1257.563517] bnxt_en 0000:63:00.0 eth0-tor1: hwrm req_type 0x103 seq id 0x136c error 0x2
> [ 1257.572898] bnxt_en 0000:63:00.0 eth0-tor1: Error: bnxt_tc_add_flow: cookie=0xffff9fe731a28800 error=-22
> [ 1257.583457] bnxt_en 0000:63:00.1 eth0-tor2: hwrm req_type 0x103 seq id 0x1369 error 0x2
> [ 1257.591647] bnxt_en 0000:63:00.1 eth0-tor2: Error: bnxt_tc_add_flow: cookie=0xffff9fe731a28800 error=-22
>
> Please advise how to fix it.

I have not had the pleasure of testing this specific NIC myself, but
from cursory view of kernel sources the message indicate that the
driver is attempting an HWRM_CFA_FLOW_ALLOC operation and is getting a
HWRM_ERR_CODE_INVALID_PARAMS error.

My hunch would be there are some flow attributes in use that the
driver/firmware does not support. If this is a 5.4 kernel it might be
conntrack, you could try to disable port security for all networks and
ports (make sure port-security is enabled in Neutron ML2 though,
otherwise you would not be able to disable it properly).

-- 
Frode Nordahl

>
> --
> Regards,
>
>
> Ammad
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


More information about the discuss mailing list