From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH net-next] cxgb4: use new fw interface to get the VIN and smt index Date: Wed, 21 Nov 2018 19:46:24 -0700 Message-ID: <20181122024624.GA28494@ziepe.ca> References: <1542787824-4731-1-git-send-email-ganeshgr@chelsio.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, davem@davemloft.net, nirranjan@chelsio.com, indranil@chelsio.com, dt@chelsio.com, linux-rdma@vger.kernel.org, swise@opengridcomputing.com, linux-crypto@vger.kernel.org, atul.gupta@chelsio.com, linux-scsi@vger.kernel.org, varun@chelsio.com, Santosh Rastapur To: Ganesh Goudar Return-path: Received: from mail-pl1-f195.google.com ([209.85.214.195]:37593 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391695AbeKVNXl (ORCPT ); Thu, 22 Nov 2018 08:23:41 -0500 Received: by mail-pl1-f195.google.com with SMTP id b5so8215233plr.4 for ; Wed, 21 Nov 2018 18:46:27 -0800 (PST) Content-Disposition: inline In-Reply-To: <1542787824-4731-1-git-send-email-ganeshgr@chelsio.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Nov 21, 2018 at 01:40:24PM +0530, Ganesh Goudar wrote: > From: Santosh Rastapur > > If the fw supports returning VIN/VIVLD in FW_VI_CMD save it > in port_info structure else retrieve these from viid and save > them in port_info structure. Do the same for smt_idx from > FW_VI_MAC_CMD > > Signed-off-by: Santosh Rastapur > Signed-off-by: Ganesh Goudar > drivers/crypto/chelsio/chtls/chtls_cm.c | 3 +- > drivers/infiniband/hw/cxgb4/cm.c | 6 +-- > drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 12 ++++- > drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 58 ++++++++++++------------- > drivers/net/ethernet/chelsio/cxgb4/l2t.c | 13 +++--- > drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 46 ++++++++++++++++++-- > drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 20 +++++++++ > drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 3 +- > drivers/target/iscsi/cxgbit/cxgbit_cm.c | 8 ++-- > 9 files changed, 114 insertions(+), 55 deletions(-) Applied to for-next, but please try to write better commit messages in future, explain what benifit your change is bringing. Jason