Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3055649pxx; Sun, 1 Nov 2020 21:08:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr2OSQUZxM+XQMUoZiIPez6Wr1DwA1XKQr6vY6ddlYHguWwjf1n3E+2oiYrTqc17hKJgDi X-Received: by 2002:a50:d88c:: with SMTP id p12mr14232368edj.352.1604293720095; Sun, 01 Nov 2020 21:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604293720; cv=none; d=google.com; s=arc-20160816; b=GlE1Mh5vt36frrZ+OjaSSEEUrVQOakbVOizbKmFIa8re0Mn5P03jjvJTLlK61KPztB 50VRtQYd7eczAYG8MD2G1EsutJtv9S1r8Sa4Imk1hyEAlGIOrtUIrevTr5xsAmapROj7 fQ26IgTQljbSTBLVgTuxrvXwtnBIDWiPUx3FbMl0Auxio+d1/v9cRKu/C205fi2Wyx+L MbEHVltcpQT4B2dWWhi3vHk9Oq0qPH9pQAqUb6ppCswQMRjGu0VNtCa0VEP7C0tBhzFY CB2Oe3Ole7FRwtVu/tIisGM/EAJbrYZWmQJcSA5Wz/QkaWY87ZezlcRYGqABOrHCTpKj G5Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xSoLjXb0B85PfUHERptiyF/QueGdjc/bfi/Ey6OUUOA=; b=CEueVQwxpPIDmjDOQz40I8SPplhCrfYlptm3WsyGXOeIZUODg6u84Zl5qkWMuY57T8 oCjWZ4VutM3QT3ylfxKiJzQFmSJ9RuxCzrcK17cPaPnwyXyfr1H5K9/bYqVZpRnLk5Yo l5sAHR83oeE1/LxTvDc4xpJvK3+m2ylaKY/zPtMtVEWeXZKgIx5K/befAXj7uFpIBfqq L2yo9EJzn2OGvZc9LELwDucmY/hNctjTAD+InG4iwz4Js2ZUUBclOrW8jukw3+evot/z Qrs2ZxGc6GJ3B1xPqZCnONRlGAYMTvtK14xrrX6+E+arikJrB2TQfyNNb5p9UdUXSvkB 9Uiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="go/1BOdW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si550458ede.493.2020.11.01.21.08.17; Sun, 01 Nov 2020 21:08:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="go/1BOdW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727826AbgKBFG7 (ORCPT + 99 others); Mon, 2 Nov 2020 00:06:59 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:17026 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725208AbgKBFG7 (ORCPT ); Mon, 2 Nov 2020 00:06:59 -0500 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 0A255Xrh013119; Sun, 1 Nov 2020 21:06:55 -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-transfer-encoding : content-type; s=pfpt0220; bh=xSoLjXb0B85PfUHERptiyF/QueGdjc/bfi/Ey6OUUOA=; b=go/1BOdWa1+PV7Nvw0V2sw53XPYMkeJi/Kll/fMIN6CZ/iiMIAUz5Q8wLMOgJ8CshKC1 k2UJFzbqSBTqgPglpqIDT6PkLXoonW/pyBZZsVW7qSw10N6jBThuWqjK5/D+KOsef43K IowDdioo4rTBSp5qkc/sAHbiE9l9fjC4ljd3tDV9Eazs0jfpjYiGjtuc8QeN460n4YJf vJxqtc7FHXzx+Y9WxTJaC9J8HBCHE/e3yVVLwmtCk37FanlNUpgqIVTd2fLmb6Y1medf THTUXYfXZVVc4KMLqLNU5Gd7WQCGcENef/wX5J08axRpYkHaFALqj+UruhQ4V+vT/xH7 7Q== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 34h7ennyu3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 01 Nov 2020 21:06:55 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 1 Nov 2020 21:06:53 -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; Sun, 1 Nov 2020 21:06:54 -0800 Received: from hyd1584.caveonetworks.com (unknown [10.29.37.82]) by maili.marvell.com (Postfix) with ESMTP id 1B7F23F703F; Sun, 1 Nov 2020 21:06:50 -0800 (PST) From: George Cherian To: , CC: , , , , , , Subject: [net-next PATCH 0/3] Add devlink and devlink health reporters to Date: Mon, 2 Nov 2020 10:36:46 +0530 Message-ID: <20201102050649.2188434-1-george.cherian@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-02_01:2020-10-30,2020-11-02 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add basic devlink and devlink health reporters. Devlink health reporters are added for NPA and NIX blocks. These reporters report the error count in respective blocks. Address Jakub's comment to add devlink support for error reporting. https://www.spinics.net/lists/netdev/msg670712.html George Cherian (3): octeontx2-af: Add devlink suppoort to af driver octeontx2-af: Add devlink health reporters for NPA octeontx2-af: Add devlink health reporters for NIX .../net/ethernet/marvell/octeontx2/Kconfig | 1 + .../ethernet/marvell/octeontx2/af/Makefile | 3 +- .../net/ethernet/marvell/octeontx2/af/rvu.c | 9 +- .../net/ethernet/marvell/octeontx2/af/rvu.h | 5 +- .../marvell/octeontx2/af/rvu_devlink.c | 875 ++++++++++++++++++ .../marvell/octeontx2/af/rvu_devlink.h | 67 ++ .../marvell/octeontx2/af/rvu_struct.h | 33 + 7 files changed, 990 insertions(+), 3 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.h -- 2.25.1