From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0A15E1ADD3 for ; Thu, 30 Nov 2017 20:55:43 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Nov 2017 11:55:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,343,1508828400"; d="scan'208";a="8083875" Received: from silpixa00381635.ir.intel.com (HELO silpixa00381635.ger.corp.intel.com) ([10.237.222.149]) by fmsmga004.fm.intel.com with ESMTP; 30 Nov 2017 11:55:41 -0800 From: Jasvinder Singh To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com, ferruh.yigit@intel.com Date: Thu, 30 Nov 2017 20:08:41 +0000 Message-Id: <20171130200843.98621-1-jasvinder.singh@intel.com> X-Mailer: git-send-email 2.9.3 Subject: [dpdk-dev] [PATCH 0/2] net/softnic: add flow classification support 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: Thu, 30 Nov 2017 19:55:44 -0000 This patchset extends the softnic device by implementing the software fallback for flow classification as defined using Flow APIs. When feature is enabled, softnic classifies and executes actions on the received packets based on flow rules specified using rte_flow.h. The motivation behind this feature is to implement metering and policing function in softnic which requires each flow to be classified at the preceding stage of the packet processing pipeline. Another aspect is to support classification of the greater number of flows (For e.g. 64K) which is not feasible in some hardware due to resource limitation such as memory, etc. This feature, inherently, uses the abstraction provided by dpdk librte_table library to create hash table for classification, and allows users to validate, add and delete flow rules. Current version does not implement all functions and will be completed in the next version. Jasvinder Singh (2): net/softnic: add flow classification support net/softnic: add flow classification ops drivers/net/softnic/Makefile | 2 +- drivers/net/softnic/rte_eth_softnic.c | 389 +++++++++++++- drivers/net/softnic/rte_eth_softnic.h | 16 + drivers/net/softnic/rte_eth_softnic_fc.c | 680 ++++++++++++++++++++++++ drivers/net/softnic/rte_eth_softnic_internals.h | 162 +++++- mk/rte.app.mk | 2 + 6 files changed, 1240 insertions(+), 11 deletions(-) create mode 100644 drivers/net/softnic/rte_eth_softnic_fc.c -- 2.9.3