From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47BC3C4338F for ; Fri, 13 Aug 2021 07:38:58 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id D25B06104F for ; Fri, 13 Aug 2021 07:38:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D25B06104F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DAE740DF4; Fri, 13 Aug 2021 09:38:57 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 6117F4014D for ; Thu, 12 Aug 2021 22:17:57 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1065) id 84252209C3B2; Thu, 12 Aug 2021 13:17:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 84252209C3B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1628799476; bh=S3+Kq2ZMwT9TOvTwDpnzF8UKRaYR4VMBZW+MKxUp/hM=; h=From:To:Cc:Subject:Date:From; b=V/G95TuRLF3ZYECcnQXVWNmOiclEnFYVOmgBTltdYh9JcTxle5lCJgN5Mz2paPJ5x U/kQWQ4PaFgvE6aADEhPLFkmgTWiFcPmWVLD5qlHTXc0umb+mrQG5HegTozyyTdegX 01Bb1GSFUaj7i64/DBUVwHJaSG3m8/quExGpvny0= From: Sowmini Varadhan To: sowmini05@gmail.com, bernard.iremonger@intel.com, dev@dpdk.org, sovaradh@linux.microsoft.com Cc: thomas@monjalon.net Date: Thu, 12 Aug 2021 13:17:46 -0700 Message-Id: X-Mailer: git-send-email 1.8.3.1 X-Mailman-Approved-At: Fri, 13 Aug 2021 09:38:55 +0200 Subject: [dpdk-dev] [PATCH 0/2] TCP flow classification using 4-tuple and flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The problem space of TCP flow tracking and classification based on TCP state requires the ability to classify TCP flows on more packet properties than just the 4-tuple, e.g., TCP flags. This patch-set provides the set of changes needed in the examples/flow_classify.c needed to achieve this. Patch 1 extends examples/flow_classify.c to allow constraints on tcp flags. Patch 2 extends the ACL handling in librte_flow_classify to include keys on the properties in addition to the tcp 4-tuple. Sowmini Varadhan (2): Hooks to allow the setting of filters on tcp flags Allow the flow_classify example to add an ACL table for tcp. examples/flow_classify/flow_classify.c | 118 +++++++++++++++++--- examples/flow_classify/ipv4_rules_file.txt | 22 ++-- lib/flow_classify/rte_flow_classify.c | 87 +++++++++++++++ lib/flow_classify/rte_flow_classify.h | 19 ++++ lib/flow_classify/rte_flow_classify_parse.c | 8 +- 5 files changed, 228 insertions(+), 26 deletions(-) -- 2.17.1