Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1443393ybk; Sun, 10 May 2020 17:16:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLAbd767M6cIzV2+X+QldtiuyDBae9HydXqGAex1fV8gKxAUJFa1h4ISroJ9kMDaLffOTcG X-Received: by 2002:a50:ea87:: with SMTP id d7mr10837917edo.48.1589156163959; Sun, 10 May 2020 17:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589156163; cv=none; d=google.com; s=arc-20160816; b=fkKhQ5nXfs3+BehfYYdJ/DbLe58uTa0y8Yfb5rLQU3ZDaY7HlL6570Z0POTegEicUJ EoPtl2WXOq1Mf59BQMazYBiew13wBgrHW915mcL0rO7dkqhO2q/TpTRGuuQXdLBwBtb6 GajKHesuKKIpvW3fAZkjNMsyJJeMSQtevswDMpV79LUwtOCPtdPXgALBIa5Ycu3y4iOg nUk3feSPEcKfQ5XJJaHJ5GL71pPJI+rHEV/EYh4xbEetJ0ClPSbRgJgynqitr4sAhtTV MEoHF79u545VeBgAmfWJ1hGQIXIgL0sJLfmhmC0T5o22gPdDAHo7SU+uKvQBwC6VIA24 9qFw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uQ2/G5RuzARgSm6Unm8PxoFsYBSPV70hkywoOe15K00=; b=MSvmvnMH/2Gev+53eFyYKvoWb9yE7eaKOvzvxrZPGFhKc0Ax1DIUw6VxsONptVwMVe iPv3HKkPk5KVu6oNg8IQ0SfGdgUY4lhinVs65oMjpoqLLlTAksZQWWezI4p6QAGm2DtJ mxbdV5gGWuxQPehc9AsvIQOxpoAyQsrDulI+mSsWIK2g073Jv/HL4ngQsJYXuYcm0HYY 8H4PWsKdiP/dM67E4+Es04EYQt5QBj7z3w4o5PyZpdY/S6ZEgrC1THvmZhRlwMv5agM0 lIu+Jmzj86DthXOq79tBG6PixM7J2QNZkXj3bNC0mCKuBAM9oL5C/jaLBVcNu220K+9N YI0A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si5346703edq.430.2020.05.10.17.15.25; Sun, 10 May 2020 17:16: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729340AbgEKANT (ORCPT + 99 others); Sun, 10 May 2020 20:13:19 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4322 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729310AbgEKANT (ORCPT ); Sun, 10 May 2020 20:13:19 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4AFFEB1D39BFCAE86E6E; Mon, 11 May 2020 08:13:16 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 08:13:06 +0800 Subject: Re: [PATCH net-next 3/5] net: hns3: provide .get_cmdq_stat interface for the client To: Jakub Kicinski CC: , , , , , References: <1589016461-10130-1-git-send-email-tanhuazhong@huawei.com> <1589016461-10130-4-git-send-email-tanhuazhong@huawei.com> <20200509134816.534860ab@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: tanhuazhong Message-ID: <1b76cac7-b1cc-cbab-cef4-cefeaa25ac62@huawei.com> Date: Mon, 11 May 2020 08:13:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20200509134816.534860ab@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/10 4:48, Jakub Kicinski wrote: > 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? > Hi, Jakub. This interface is needed by the roce client, whose patch will be upstreamed to the rdma tree, it is other branch. So we provide this interface previously, then the rdma guy will upstream their patch later, maybe linux-5.8-rc*. Thanks. > . >