From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BB52811D4 for ; Mon, 15 May 2017 04:56:25 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2017 19:56:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,342,1491289200"; d="scan'208";a="856781541" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.129.189]) by FMSMGA003.fm.intel.com with ESMTP; 14 May 2017 19:56:23 -0700 From: Qi Zhang To: adrien.mazarguil@6wind.com Cc: dev@dpdk.org, wenzhuo.lu@intel.com, beilei.xing@intel.com, Qi Zhang Date: Sun, 14 May 2017 15:50:04 -0400 Message-Id: <1494791406-3594-1-git-send-email-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [RFC 0/2] ethdev: add new attribute for signature match X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2017 02:56:26 -0000 We try to enable ixgbe's signature match with rte_flow, but didn't find a way with current APIs, so the RFC propose to add a new flow attribute "sig_match" to indicate if current flow is "perfect match" or "signature match" With perfect match (by default), if a packet does not match pattern, actions will not be taken. (this is identical with current behavior) With signature match, if a packet does not match pattern, it still has the possibility to trigger the actions, this happens when device think the signature of the pattern is matched. Signature match is expected to have better performance than perfect match with the cost of accuracy. When a flow rule with this attribute set, identical behavior can ONLY be guaranteed if packet matches the pattern, since different device may have different implementation of signature calculation algorithm. Driver of device that does not support signature match is not required to return error, but just simply igore this attribute, because the default "perfect match" still can be regarded as a speical case of "signature match". Qi Zhang (2): rte_flow: add attribute for signature match doc/guides/prog_guide: add new rte_flow attribute app/test-pmd/cmdline_flow.c | 11 +++++++++++ doc/guides/prog_guide/rte_flow.rst | 12 ++++++++++++ lib/librte_ether/rte_flow.h | 3 ++- 3 files changed, 25 insertions(+), 1 deletion(-) -- 2.7.4