From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 74C9BA0E4 for ; Fri, 26 May 2017 20:01:30 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 May 2017 11:01:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,398,1491289200"; d="scan'208";a="1153263887" Received: from silpixa00381635.ir.intel.com (HELO silpixa00381635.ger.corp.intel.com) ([10.237.222.149]) by fmsmga001.fm.intel.com with ESMTP; 26 May 2017 11:01:25 -0700 From: Jasvinder Singh To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com, ferruh.yigit@intel.com, hemant.agrawal@nxp.com, Jerin.JacobKollanukkaran@cavium.com, wenzhuo.lu@intel.com Date: Fri, 26 May 2017 19:11:47 +0100 Message-Id: <20170526181149.44085-1-jasvinder.singh@intel.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] net/softnic: sw fall-back for traffic management 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: Fri, 26 May 2017 18:01:31 -0000 The SoftNIC PMD provides SW fall-back option for the NICs not supporting the Traffic Management (TM) features. SoftNIC PMD overview: - The SW fall-back is based on the existing librte_sched DPDK library. - The TM-agnostic port (the underlay device) is wrapped into a TM-aware softnic port (the overlay device). - Once the overlay device (virtual device) is created, the configuration of the underlay device is taking place through the overlay device. - The SoftNIC PMD is generic, i.e. it works for any underlay device PMD that implements the ethdev API. Similarly to Ring PMD, the SoftNIC virtual device can be created in two different ways: 1. Through EAL command line (--vdev option)  2. Through the rte_eth_softnic_create() API function called by the application SoftNIC PMD params: - iface (mandatory): the ethdev port name (i.e. PCI address or vdev name) for the underlay device - txq_id (optional, default = 0): tx queue id of the underlay device - deq_bsz (optional, default = 24): traffic manager dequeue burst size - Example:  --vdev 'net_softnic0,iface=0000:04:00.1,txq_id=0,deq_bsz=28' SoftNIC PMD build instructions: - To build SoftNIC PMD, the following parameter needs to be set on config/common_base file: CONFIG_RTE_LIBRTE_PMD_SOFTNIC=y - The SoftNIC PMD depends on the TM API [1] and therefore is initially targeted for the tm-next repository Patch 1 adds softnic device PMD for traffic management. Patch 2 adds traffic management ops to the softnic device suggested in generic ethdev API for traffic management[1]. [1] TM API version 4:  http://www.dpdk.org/dev/patchwork/patch/24411/, http://www.dpdk.org/dev/patchwork/patch/24412/ Jasvinder Singh (2): net/softnic: add softnic PMD for traffic management net/softnic: add traffic management ops MAINTAINERS | 5 + config/common_base | 5 + drivers/net/Makefile | 5 + drivers/net/softnic/Makefile | 58 ++ drivers/net/softnic/rte_eth_softnic.c | 578 ++++++++++++ drivers/net/softnic/rte_eth_softnic.h | 99 ++ drivers/net/softnic/rte_eth_softnic_default.c | 1104 +++++++++++++++++++++++ drivers/net/softnic/rte_eth_softnic_internals.h | 93 ++ drivers/net/softnic/rte_eth_softnic_tm.c | 235 +++++ drivers/net/softnic/rte_eth_softnic_version.map | 7 + mk/rte.app.mk | 5 +- 11 files changed, 2193 insertions(+), 1 deletion(-) create mode 100644 drivers/net/softnic/Makefile create mode 100644 drivers/net/softnic/rte_eth_softnic.c create mode 100644 drivers/net/softnic/rte_eth_softnic.h create mode 100644 drivers/net/softnic/rte_eth_softnic_default.c create mode 100644 drivers/net/softnic/rte_eth_softnic_internals.h create mode 100644 drivers/net/softnic/rte_eth_softnic_tm.c create mode 100644 drivers/net/softnic/rte_eth_softnic_version.map -- 2.9.3