From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D762A2EDB for ; Fri, 6 Sep 2019 09:40:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9F891F2CD; Fri, 6 Sep 2019 09:33:48 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 983061F1DF for ; Fri, 6 Sep 2019 09:32:47 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x867KNBY000459 for ; Fri, 6 Sep 2019 00:32:46 -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=njoNhexCTdf4ciXPFhAkKUIQrWoU85rXoKi2gB9hUpA=; b=vCtjU/ILAVf4bBWBy0jSYpc/VsBamy6qC3MU0ygcI1gJ8PfB+9JyjMAFhnGwzUpNnb5Z yn48ODzBHADxh049sj9MGXnhDWJWSsCADY8O5WRixDWIC6LF39ccvWcRE7LLV0qc4+yW wKUMS9pyWKu/7Y14Wd+iOTTDWqKDeIWCShRYdXw2QsjhDepZHkGGZLQkdaVd+86hOj8U EOcNuDhqhCDgxNBh3VgZa2Kim4F69WjKY7/rEbHgRLBhMfENC6KT2Kfh3ws0LxRpx93O 3pxR92wfaYkDock2AN6GLobVXdQRIYGaXnV/x4r6Wk8fjrl/kHmEQZtk1UA1fc7OmhQ5 bA== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2uqp8pq9e7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 06 Sep 2019 00:32:46 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 6 Sep 2019 00:32:44 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 6 Sep 2019 00:32:44 -0700 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id 4DB4C3F703F; Fri, 6 Sep 2019 00:32:44 -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 x867Wi7Y013910; Fri, 6 Sep 2019 00:32:44 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x867Wh7H013909; Fri, 6 Sep 2019 00:32:43 -0700 From: Shahed Shaikh To: CC: , , Date: Fri, 6 Sep 2019 00:32:12 -0700 Message-ID: <20190906073217.13873-1-shshaikh@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-06_03:2019-09-04,2019-09-06 signatures=0 Subject: [dpdk-dev] [PATCH v1 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. 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 | 362 +++++++++++++++++++------- drivers/net/qede/qede_rxtx.h | 26 +- 9 files changed, 549 insertions(+), 332 deletions(-) -- 2.17.1