From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92389C433F5 for ; Tue, 8 Feb 2022 11:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233493AbiBHLXy (ORCPT ); Tue, 8 Feb 2022 06:23:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355795AbiBHJzN (ORCPT ); Tue, 8 Feb 2022 04:55:13 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142FFC03FEC0; Tue, 8 Feb 2022 01:55:13 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2189e1Gs001072; Tue, 8 Feb 2022 01:55:03 -0800 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=pfpt0220; bh=3abWHgG6nENtNyY5CXP31TV02jF59Tr3xSqA/fFYRfU=; b=OV9t6Unxq3b4h6e9scy+KFsT8tqELVt9yYW3MLvT68jJALYsHGot1/ddNj4f9kb31mKw h9vpun8jTiMvD5dHFizxnT50QDo5DdfFFg7mCSN/9Ix59KbupwxOho/hCYDSpmimjCq1 rrajMPVWUvMytuIcN42voGhm58fDXr4K40IHlHOCskZU0d2V47dxyJDn/H6Eo+LxFz2u 6aI9JrDsnDV8A3G4pUt9XeD+cyAcUhx0oymAR9dw+X+SRXvmpr2Tw5Fb7V8GjE2H1z3m yYPKTmaNqZ5bAASJvB2ZZaiMRAkDd6WckuEwKfia0BtNYExnvyFcZXlZhT0/74ASNzgK 6A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e3nuy02qc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 08 Feb 2022 01:55:02 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Feb 2022 01:55:00 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 8 Feb 2022 01:55:00 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 0E7403F708F; Tue, 8 Feb 2022 01:54:57 -0800 (PST) From: Hariprasad Kelam To: , CC: , , , , , , , Subject: [net-next PATCH 0/4] Priority flow control support for RVU netdev Date: Tue, 8 Feb 2022 15:24:52 +0530 Message-ID: <20220208095456.6122-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: nxZF4mK6WB5-LdweunyRz-MM67UNdlS- X-Proofpoint-ORIG-GUID: nxZF4mK6WB5-LdweunyRz-MM67UNdlS- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-08_02,2022-02-07_02,2021-12-02_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In network congestion, instead of pausing all traffic on link PFC allows user to selectively pause traffic according to its class. This series of patches add support of PFC for RVU netdev drivers. Patch1 adds support to disable pause frames by default as with PFC user can enable either PFC or 802.3 pause frames. Patch2&3 adds resource management support for flow control and configures necessary registers for PFC. Patch4 adds dcb ops registration for netdev drivers. Hariprasad Kelam (3): octeontx2-af: Don't enable Pause frames by default octeontx2-af: Flow control resource management octeontx2-pf: PFC config support with DCBx Sunil Kumar Kori (1): octeontx2-af: Priority flow control configuration support .../net/ethernet/marvell/octeontx2/af/cgx.c | 247 +++++++++++++----- .../net/ethernet/marvell/octeontx2/af/cgx.h | 13 + .../marvell/octeontx2/af/lmac_common.h | 10 + .../net/ethernet/marvell/octeontx2/af/mbox.h | 19 ++ .../net/ethernet/marvell/octeontx2/af/rpm.c | 223 ++++++++++++---- .../net/ethernet/marvell/octeontx2/af/rpm.h | 30 +++ .../net/ethernet/marvell/octeontx2/af/rvu.h | 3 + .../ethernet/marvell/octeontx2/af/rvu_cgx.c | 117 ++++++++- .../ethernet/marvell/octeontx2/af/rvu_nix.c | 16 +- .../ethernet/marvell/octeontx2/nic/Makefile | 3 + .../marvell/octeontx2/nic/otx2_common.c | 17 +- .../marvell/octeontx2/nic/otx2_common.h | 12 + .../marvell/octeontx2/nic/otx2_dcbnl.c | 170 ++++++++++++ .../marvell/octeontx2/nic/otx2_flows.c | 50 +++- .../ethernet/marvell/octeontx2/nic/otx2_pf.c | 26 +- .../ethernet/marvell/octeontx2/nic/otx2_vf.c | 24 +- 16 files changed, 835 insertions(+), 145 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c -- 2.17.1