From patchwork Thu Sep 12 15:24:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahed Shaikh X-Patchwork-Id: 59161 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 096D91EA41; Thu, 12 Sep 2019 17:24:36 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id B3C951E9C1 for ; Thu, 12 Sep 2019 17:24:33 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8CFN76A016379 for ; Thu, 12 Sep 2019 08:24:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=XA6LPp/23jiS3F3O5K8InaNij/0awdjgw0QnJAi0zXY=; b=Ndp8PTY7uVqxBEEToDhzz3J3or1+5gBjpAF/TBpc88+zSvqpndeZp8Zro6ZMfOkDjKWQ /WUPjBCitecX1bhj9XK9r+4PPujsOaYMjPPMgb0Y7TcCFS0x2ssSTTbpz/MlEMyOE9rr C1Vx0oDdHaQmJ6ywhHGtAPs7c6C13Ed6U7FsXDKcR1kJxPXrGbdWOZLlVCKvFs+OOgBM K361P2hJhlJe3ihn1/tLGTpjS0VVUX2h/5qw6Q3lLOvYbjrDyjl4iDng1qntG8PX9nsS dJWfoViZ5zEQO1/mF8P5w8DYZrViJ8VDnTI5BRnnnsQIPt71p0BXM445ENR4YqqqTtgF /Q== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2uvc2jy6ap-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 12 Sep 2019 08:24:32 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 12 Sep 2019 08:24:31 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 12 Sep 2019 08:24:31 -0700 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id D48503F703F; Thu, 12 Sep 2019 08:24:30 -0700 (PDT) Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x8CFOUOc003059; Thu, 12 Sep 2019 08:24:30 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x8CFOUS2003058; Thu, 12 Sep 2019 08:24:30 -0700 From: Shahed Shaikh To: CC: , , Date: Thu, 12 Sep 2019 08:24:11 -0700 Message-ID: <20190912152416.2990-1-shshaikh@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-12_08:2019-09-11,2019-09-12 signatures=0 Subject: [dpdk-dev] [PATCH v2 0/5] net/qede: fixes and enhancement 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" First four patches are part of a fix for the ovs-dpdk issue with 100Gb NIC [1]. Fifth patch adds support for drop action in rte_flow. [1] As per HW design of 100Gb mode, device internally uses 2 engines (eng0 and eng1), and both engines need to be configured symmetrically. Based on this requirement, driver design chose an approach to allow user to allocate only even number of queues and split those queues on both engines equally. This approach puts a limitation on number of queues to be allocated - i.e. user can't configure odd number of queues on 100Gb mode. OVS configures DPDK port with 1 rxq and 1 txq, which causes initialization of qede port to fail. This patch series changes the implementation of queue allocation method for 100Gb devices by removing above mentioned limitation and allowing user to configure odd number of queues. Fix is split into 4 logical patches - - First patch refactors Rx and Tx queue setup code to lay a foundation for actual fix. - Second patch actually implements a new approach to fix the issue. - Third patch fixes RSS configuration w.r.t. new approach. - Fourth patch fixes statistics code impacted due to new approach. change in v2: Fixed compilation failure from patch 2 on clang compiler. Shahed Shaikh (5): net/qede: refactor Rx and Tx queue setup net/qede: fix ovs-dpdk failure when using odd number of queues on 100Gb mode net/qede: fix RSS configuration as per new 100Gb queue allocation method net/qede: fix stats flow as per new 100Gb queue allocation method net/qede: implement rte_flow drop action doc/guides/nics/qede.rst | 39 +++ drivers/net/qede/base/ecore_dev_api.h | 1 + drivers/net/qede/base/ecore_l2.c | 50 ++-- drivers/net/qede/base/ecore_l2_api.h | 39 ++- drivers/net/qede/qede_ethdev.c | 331 +++++++++++------------ drivers/net/qede/qede_ethdev.h | 6 +- drivers/net/qede/qede_filter.c | 27 +- drivers/net/qede/qede_rxtx.c | 361 +++++++++++++++++++------- drivers/net/qede/qede_rxtx.h | 26 +- 9 files changed, 549 insertions(+), 331 deletions(-)