Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3222273pxu; Sun, 11 Oct 2020 01:39:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2pTn+iVNTpqRcJHGyKKaYT/TN/CVACOq9DyLF4UGpUNPsX0x02/WxZaqOe5J0U8TGAwm5 X-Received: by 2002:a17:906:30c8:: with SMTP id b8mr21930470ejb.77.1602405589901; Sun, 11 Oct 2020 01:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602405589; cv=none; d=google.com; s=arc-20160816; b=ijcq5FbNZQ8afrq4KTp2wtpy8S4AC3PAr8qIihLkwvywcvejJfJ9cwfz4dfK2st8Zo jdZp27k4/E4K8FmtsscLjsvnhIRnlfNIQ8ib+Zl9eRajLfgAyBiJSkZsWcdoaIUz592f an/jTg3BSDkzBm+tYUhMEWxzsnVZ5OqHH2zyDOMz4fauq4ijUiGO0vzZmVBEdp7QA4+P mcnJf1RS7eitSumToIJtcNLEu2zvAPf6oeYaEjAaNHwu/Jk4DZEWJAA38DJRLZKPj+Ms CG/S6OnWSpcCsKkCigp9cQiRxJJn+p9NDDsCNijouK/dcHCVvZVnmZY4l0kjJOYCKky1 Ya2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hnd/mv3jxhuZxVrX3GYV8Ajw+ecT5R2LNKIYlv6d3No=; b=u5AYSNAeLHFFfUKj6/bWufLUjIT6OGloUjTb0/Pgjnl2AjHqICecF21BP3BUu9wXD9 6aYo+2ztLUJKD/4WOth0V3b27LwZKqaCUCi4lA/cM8ZCQTQxPh6Uy9YIvWGw5oKA9FE0 s7wKiwJDBqaMiFAHM5PbgUXpD2K2K9Q5DmSyrKgDd3CGNZVK+OwOR0P3VNR1HiWOHbMV RUTUuEbCdWtw3gKIvMs7CDD2lLDWBb2NhtaosXY3cID565YtoswR7PQo99IB067NFeEC ADSq5swiQdbjplxl75xdDBlTb6vJnFUdYtVkKHoTSxR+7C56BZd5R+MCrt4jGhYbd2pO I8ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dm4fMwFj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx12si12692997edb.298.2020.10.11.01.39.27; Sun, 11 Oct 2020 01:39:49 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=Dm4fMwFj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729532AbgJJHfp (ORCPT + 99 others); Sat, 10 Oct 2020 03:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728994AbgJJHfV (ORCPT ); Sat, 10 Oct 2020 03:35:21 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE93CC0613CF; Sat, 10 Oct 2020 00:35:20 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id n14so8835811pff.6; Sat, 10 Oct 2020 00:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Hnd/mv3jxhuZxVrX3GYV8Ajw+ecT5R2LNKIYlv6d3No=; b=Dm4fMwFjM1xohWdCX4FurJA/KOw5/SuFGNgpKPzBdyRfXJpJlGfpnwZhy6iqgrD1fx g/jx8YKenfi9lOna0Yu5mwakuQV4hyNPMT7msClic/2WWqyHohb9i6fW/5Cj8McGl7Bs mb8uPdr1BORea/nXWCibt4FxRP+KiGyCCa00GLILU+Ik0vab9vSy31AcqEu7pDH13v3L mKD18kmD88f5SNrBNRnW8D18beG3vCQYtOm50uwkM2pfCRC7f+roxS2cOUyW/a3WxD7o X8tLMJ1Qx1QHM2tQkapjK9WY1FGI7JqCypGahodiJhipMKrCeyN52WR7yNybK96dpik+ CLSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Hnd/mv3jxhuZxVrX3GYV8Ajw+ecT5R2LNKIYlv6d3No=; b=jK6bko50a1qtldEmDiMrsi6a11kSiOo/ooB8k3a7v84GX1zefweNI9/rEhYjE4j8vU /v1ZcELiTgsvbpbEdNkyjEfYwEysUwqlyBiT3qq357gSMvANk62XDGnjMCWB21IHqpVG zk4iPv3sD3P6tVZKi+X/FUWvCDeOsPWq2vPW9h+iPirTXvQjneqHwydUDH3j01Ee8uTX WRNbms3JDn7E8zmyVBX+VUIF6xleEdo7qfnI0UP6NI49ll2a413Z7eqV1jMMSiQzkZMG RQt/JlmEBFbQUwrcyIaGIzxFhBQjzUiWc1Tm5Rh/aTUv4RSDgNBcM4SVagxGZn/WE57/ 0HdA== X-Gm-Message-State: AOAM530Nt6B917ZLXboOq6I76GeBFVj+nTqox2RDGmhd2pm8BEwKlv/4 qRB+J1DVWtmImytIylxm63g= X-Received: by 2002:a17:90a:3fcb:: with SMTP id u11mr8666256pjm.128.1602315320134; Sat, 10 Oct 2020 00:35:20 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id c21sm13507834pfo.139.2020.10.10.00.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 00:35:19 -0700 (PDT) Date: Sat, 10 Oct 2020 16:35:14 +0900 From: Benjamin Poirier To: Coiby Xu Cc: devel@driverdev.osuosl.org, Shung-Hsi Yu , Manish Chopra , "supporter:QLOGIC QLGE 10Gb ETHERNET DRIVER" , Greg Kroah-Hartman , open list , "open list:QLOGIC QLGE 10Gb ETHERNET DRIVER" Subject: Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver Message-ID: <20201010073514.GA14495@f3> References: <20201008115808.91850-1-coiby.xu@gmail.com> <20201008115808.91850-2-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201008115808.91850-2-coiby.xu@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-08 19:58 +0800, Coiby Xu wrote: > Initialize devlink health dump framework for the dlge driver so the > coredump could be done via devlink. > > Signed-off-by: Coiby Xu > --- > drivers/staging/qlge/Kconfig | 1 + > drivers/staging/qlge/Makefile | 2 +- > drivers/staging/qlge/qlge.h | 9 +++++++ > drivers/staging/qlge/qlge_devlink.c | 38 +++++++++++++++++++++++++++++ > drivers/staging/qlge/qlge_devlink.h | 8 ++++++ > drivers/staging/qlge/qlge_main.c | 28 +++++++++++++++++++++ > 6 files changed, 85 insertions(+), 1 deletion(-) > create mode 100644 drivers/staging/qlge/qlge_devlink.c > create mode 100644 drivers/staging/qlge/qlge_devlink.h > > diff --git a/drivers/staging/qlge/Kconfig b/drivers/staging/qlge/Kconfig > index a3cb25a3ab80..6d831ed67965 100644 > --- a/drivers/staging/qlge/Kconfig > +++ b/drivers/staging/qlge/Kconfig > @@ -3,6 +3,7 @@ > config QLGE > tristate "QLogic QLGE 10Gb Ethernet Driver Support" > depends on ETHERNET && PCI > + select NET_DEVLINK > help > This driver supports QLogic ISP8XXX 10Gb Ethernet cards. > > diff --git a/drivers/staging/qlge/Makefile b/drivers/staging/qlge/Makefile > index 1dc2568e820c..07c1898a512e 100644 > --- a/drivers/staging/qlge/Makefile > +++ b/drivers/staging/qlge/Makefile > @@ -5,4 +5,4 @@ > > obj-$(CONFIG_QLGE) += qlge.o > > -qlge-objs := qlge_main.o qlge_dbg.o qlge_mpi.o qlge_ethtool.o > +qlge-objs := qlge_main.o qlge_dbg.o qlge_mpi.o qlge_ethtool.o qlge_devlink.o > diff --git a/drivers/staging/qlge/qlge.h b/drivers/staging/qlge/qlge.h > index b295990e361b..290e754450c5 100644 > --- a/drivers/staging/qlge/qlge.h > +++ b/drivers/staging/qlge/qlge.h > @@ -2060,6 +2060,14 @@ struct nic_operations { > int (*port_initialize)(struct ql_adapter *qdev); > }; > > + > + > +struct qlge_devlink { > + struct ql_adapter *qdev; > + struct net_device *ndev; This member should be removed, it is unused throughout the rest of the series. Indeed, it's simple to use qdev->ndev and that's what qlge_reporter_coredump() does.