Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp644382ybk; Sat, 9 May 2020 13:51:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJxUT43V2+OvsSi1SnjwFQ4RFqyNSZqcTh+JZPmgdAGpdw+he1eejigd+3E8RtFwKjJF/F8 X-Received: by 2002:a50:eb0a:: with SMTP id y10mr7557847edp.312.1589057463701; Sat, 09 May 2020 13:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589057463; cv=none; d=google.com; s=arc-20160816; b=tS3hgShWVCVXE7R15piAtDBdeROUd8MCsIGwhmk0k26q03BZVfi36hfYh6y9Z6ES2j ArlvQI4huEMJDXMuc7Ue8XMpBP9A9+zCvF1MDak9hLriChTn9o1STcyTwEUOiiZx+cU5 Rc8vNL8o7+cYW6EiKw7Pnt+hOIssYD62x320Qub0OtpdabHP6lON8+Xf5pV+1LvIZ7Ut QQClJgm5Ujlc1VqUMbwUiy3/qYUfRpcHKk331QfmACyqch0Dmw+UR37jpzDLiD7asMtA 9GHHoJx/+quoIC5s/u80sndT/GQpU9P8VhahchM7zG4ISsXQcjZdw0s0piDrWEgKhzMG 4hGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=VB4D18rFyp4V/rCIo3whBydAKt3OrHf6ecGX9OeZL8g=; b=nRr+lyiZ9cOCCX6OM1+y60Gxf3Z/O0Lp/+ZfzcBU7jzwO4L34K0X7DERO3in3xm2HY WK6yJxC4BqF86CLE5efgFTJzUYt1Jg5QPvjDr4uouTrQAOzca72+R+qEMnPaLd5cw7rJ e3GnAB+OtjcJnGlwy2PtOgGjzRM9fKvqoniZ3LsGXJX53QwQ6O0RXpDTF72nJ9zJ4ylu Lvko/2m6L55TjquhJF5FpTkm/KOUYZnmjNwodv1bydYmd0TusNSWHU0aOxAFOYf/A05g Kequ+Hsy3F1TEpuVhQsiwfj/eRLffNhd/j6q/ZacfeUuD1cKASLsaozTNt9/ZMmfv7g4 HRlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uudwYEOr; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si3191844eja.332.2020.05.09.13.50.25; Sat, 09 May 2020 13:51:03 -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=@kernel.org header.s=default header.b=uudwYEOr; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728210AbgEIUsS (ORCPT + 99 others); Sat, 9 May 2020 16:48:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbgEIUsS (ORCPT ); Sat, 9 May 2020 16:48:18 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C37C820731; Sat, 9 May 2020 20:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589057298; bh=kKsukZbTR7/vPdeWAXGzu8JeIRo0zQgu6EijWZzW5G8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uudwYEOrKtjYobuKqPG61W5KpZteJVZBm/Z4yKXxWnonVwx5i3IGeqmNwFd9/IANU aoq3Pu1YkiTPtbJNnRNsEYh/ECDNvhHYk42WCCjaVb5gLU+9vuUkyuR/yg5aP6TzmD gA4eBn2E40Ps/baBSuCHv2oLJZ6T6BU1D66XiD7Q= Date: Sat, 9 May 2020 13:48:16 -0700 From: Jakub Kicinski To: Huazhong Tan Cc: , , , , , Subject: Re: [PATCH net-next 3/5] net: hns3: provide .get_cmdq_stat interface for the client Message-ID: <20200509134816.534860ab@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1589016461-10130-4-git-send-email-tanhuazhong@huawei.com> References: <1589016461-10130-1-git-send-email-tanhuazhong@huawei.com> <1589016461-10130-4-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 9 May 2020 17:27:39 +0800 Huazhong Tan wrote: > This patch provides a new interface for the client to query > whether CMDQ is ready to work. > > Signed-off-by: Huazhong Tan > diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h > index 5602bf2..7506cab 100644 > --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h > +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h > @@ -552,6 +552,7 @@ struct hnae3_ae_ops { > int (*set_vf_mac)(struct hnae3_handle *handle, int vf, u8 *p); > int (*get_module_eeprom)(struct hnae3_handle *handle, u32 offset, > u32 len, u8 *data); > + bool (*get_cmdq_stat)(struct hnae3_handle *handle); > }; I don't see anything in this series using this new interface, why is it added now?