From patchwork Mon Apr 19 12:25:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 1467931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=iV5VND4v; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FP5cm4gHgz9vDx for ; Mon, 19 Apr 2021 22:25:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 773D283916; Mon, 19 Apr 2021 12:25:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W1nVQSm04VPy; Mon, 19 Apr 2021 12:25:19 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTP id BDD828348C; Mon, 19 Apr 2021 12:25:17 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id CDE01C0024; Mon, 19 Apr 2021 12:25:16 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id C4C79C001B for ; Mon, 19 Apr 2021 12:25:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 896AA607BF for ; Mon, 19 Apr 2021 12:25:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w66WCV06HvnS for ; Mon, 19 Apr 2021 12:25:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 001CA6065F for ; Mon, 19 Apr 2021 12:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618835107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gScC8LusqaOtcvp5dBfYWfUp/k2YDooe4Bg5aXmlE8g=; b=iV5VND4vgF1PcNndDSQf/2tb6iWwFLTSDJkOBRAC5UJRP+bOlttbWtdGePWsyVRw9MvvwC xYNPoGJNouwww1QtWwM/GayTJzfo9hMfGKpHWJMO2DuMrIDn4g2vNxvv0UsDDNs+c+Kkkd 2h3MDCNpKtwhxxCMShJlCk9B8YKZtgI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-505-hNjJuqTSMC6AoUk1hjSDSg-1; Mon, 19 Apr 2021 08:25:06 -0400 X-MC-Unique: hNjJuqTSMC6AoUk1hjSDSg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 13CB4107ACE3 for ; Mon, 19 Apr 2021 12:25:05 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-115-147.rdu2.redhat.com [10.10.115.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id B59AC19C66; Mon, 19 Apr 2021 12:25:04 +0000 (UTC) From: Aaron Conole To: dev@openvswitch.org Date: Mon, 19 Apr 2021 08:25:01 -0400 Message-Id: <20210419122504.3519344-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: Marcelo Leitner Subject: [ovs-dev] [PATCH v2 branch-2.14 0/3] Backport ct-offload state flag support X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Backport the recent fixes related to ct-offload state flags being ignored to fix HWOL. This pulls in the skip_hw flag refactor (note it already existed, so the refactor exposes it to the upper layer - if you consider this a new feature, we can rework the series). Roi Dayan (1): tc: Use skip_hw flag when probing tc features Paul Blakey (2): compat: Add ct_state flags definitions netdev-offload-tc: Probe for support for any of the ct_state flags acinclude.m4 | 6 +- include/linux/pkt_cls.h | 5 +- lib/netdev-offload-tc.c | 207 ++++++++++++++++++++++++++++++---------- lib/tc.c | 13 ++- lib/tc.h | 10 ++ 5 files changed, 182 insertions(+), 59 deletions(-) Reviewed-by: Marcelo Ricardo Leitner