Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3426251imj; Tue, 19 Feb 2019 03:22:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IYAge9UpyWZHkwg/wJpZq2K9MsL32bLfWIvVGTuPUXJvpUZeaOfX9eCO0B1fCNeFx4CQITr X-Received: by 2002:a62:568e:: with SMTP id h14mr30089037pfj.134.1550575363693; Tue, 19 Feb 2019 03:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550575363; cv=none; d=google.com; s=arc-20160816; b=mSPYYypI3prP4aTu3Qdd7a+PQ9kEIg7F6hZKaUKxQU+gJPzuGuJJ0+T0KYU+RE5hoU grKJ4LwTLrKC+iQXjMs+0SqSNUfHF8QzxWD/gdHJLoRYLd91zWrryQ8wULe4y+Z4NQ6k pvkErscu14TY7+21Tm1crhZ0VUe+2wt8O1HrfXon70TEkf8fHbIRbqUYXz3OMuTtivES EKub4tXqqbcdkVkxMKaCTMEeMgtQS3r23M3748lm9EbwFvkNDFkLwFnvUQvw51G77UcE edoeNNMekZFdv/lcF0I9Jne9HC2ju3ha2oSsenJHgsLEd5O4vEvhko2V11sicQtqg9jz VDzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=Eid2AJCf1ss3QJ40lsbNJ6EdDY535K9ksqjVZ2u/7tk=; b=kkYpcRx8KHjQZv+MWK50e+nqhAg5HR0an5ZtnTeNYi8bYX2FavbyMkhI1rVqcOEJUf rKtDy4Mzst0BEEm09twM90yDDxE/2Koor5q1g2tVPCPJEJgqcHAciSjHHjYdjn60OnA/ Jn9VE2BeLlYe0FtGRpGOYDMA/1y5Vu05ufup1HXJ7J2BHb/WzW2ozVLxPsY/CTI7I8Uo 68ScP2Z4OvtiN2c+vKsJ4Lbq2zurD3GflNifRnJO4Bg7jHGEUS807wSktIjWqFSl7kZQ xYDLTHBP4YyCJNj5tA1s4Phn+WZFWfpvAgtS5DbuZFTE5ygK/Zz2VP0pfU7cUCwDqHOJ jNHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=hhvtwbYE; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-com header.b=Sr8w1q22; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j16si3685662pgk.441.2019.02.19.03.22.28; Tue, 19 Feb 2019 03:22:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=hhvtwbYE; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-com header.b=Sr8w1q22; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727765AbfBSLVi (ORCPT + 99 others); Tue, 19 Feb 2019 06:21:38 -0500 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:44236 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726388AbfBSLVi (ORCPT ); Tue, 19 Feb 2019 06:21:38 -0500 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1JBK8cp020614; Tue, 19 Feb 2019 03:21:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=Eid2AJCf1ss3QJ40lsbNJ6EdDY535K9ksqjVZ2u/7tk=; b=hhvtwbYEbz6OdbuN2lqHtAk+s4DnTkGvIR19YVodw3cTWEmkTFbwE+6mNs3SyPsf5IiY UXth47EHlQoSJJo5BSvulnz+xLTLxOTCiEbPncv1uAzzzfYsBgrwRaj1SdSz9b+Yt5RG 5/OgKkNuDJadt8DFJHZwkBBFuwM7mBR4FM16/oGD1EbZKqst7Sr3XstLpcUTJzEpjLY9 F2XxDb13r+FNwdXnjACVr7zYsGXJhi2+Wk9zznnT+PCG3pZ6Ump1WVRBArNvzz40HSI5 ZyA7yLvx6c3BauOtuESEfRUQtPGeZd9aRBLzOiy8QysLJCU3ZlybIV1vdmlNX0xYltNd Ng== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2qre18rjag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 19 Feb 2019 03:21:27 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 19 Feb 2019 03:21:26 -0800 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (104.47.34.54) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 19 Feb 2019 03:21:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Eid2AJCf1ss3QJ40lsbNJ6EdDY535K9ksqjVZ2u/7tk=; b=Sr8w1q22Yko03+jjpZgqL8fob2I1IsQAbE+eCQE+JSaE3RH1VLCNaV7I7ILAI3dE3NrDHRU9iJxDcUUbBnhLlraba9mVqvUpfqX/XhDj5xo34HoHLt9PteHBtAPqgfvw9OmaV7NNIbYb+VcoqASrgvuDbRan33PtUL2/f6mKL9w= Received: from CY4PR18MB1112.namprd18.prod.outlook.com (10.173.183.147) by CY4PR18MB1447.namprd18.prod.outlook.com (10.172.176.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Tue, 19 Feb 2019 11:21:25 +0000 Received: from CY4PR18MB1112.namprd18.prod.outlook.com ([fe80::7561:d13b:e106:12b4]) by CY4PR18MB1112.namprd18.prod.outlook.com ([fe80::7561:d13b:e106:12b4%4]) with mapi id 15.20.1643.014; Tue, 19 Feb 2019 11:21:25 +0000 From: Vadim Lomovtsev To: David Miller CC: "sgoutham@cavium.com" , "rric@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dnelson@redhat.com" , Vadim Lomovtsev Subject: Re: [EXT] Re: [PATCH v2 3/8] net: thunderx: make CFG_DONE message to run through generic send-ack sequence Thread-Topic: [EXT] Re: [PATCH v2 3/8] net: thunderx: make CFG_DONE message to run through generic send-ack sequence Thread-Index: AQHUx2+gF6zWP2JT70e1Q1SDCmWuPqXmNb4AgADF4QA= Date: Tue, 19 Feb 2019 11:21:25 +0000 Message-ID: <20190219112124.GA5637@localhost.localdomain> References: <20190218095159.3847-1-vlomovtsev@marvell.com> <20190218095159.3847-4-vlomovtsev@marvell.com> <20190218.153310.393264778478086662.davem@davemloft.net> In-Reply-To: <20190218.153310.393264778478086662.davem@davemloft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [4.28.12.78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f2d351cf-44f3-44e7-3a67-08d6965c62a3 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:CY4PR18MB1447; x-ms-traffictypediagnostic: CY4PR18MB1447: x-microsoft-exchange-diagnostics: 1;CY4PR18MB1447;20:rCOjgNlWiqb42Vcpy5KeFhzA454BoQ0szBpiBT+xCnJ6/xBE+d/cZ2omQge4pmMquYGzzOwcyOAljvkboKeDezkSZUVO586VQO0OwSklFzH/DcR19EMhOEvmTkbZXKuYvOZybTeT/OzAKn/z+n1x2S09VvMfUOaWuUJHuucYmOA= x-microsoft-antispam-prvs: x-forefront-prvs: 09538D3531 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(366004)(136003)(376002)(346002)(51744003)(189003)(199004)(8936002)(81156014)(81166006)(8676002)(71190400001)(71200400001)(105586002)(6916009)(68736007)(106356001)(33656002)(15650500001)(53936002)(2906002)(6436002)(316002)(476003)(6246003)(26005)(6512007)(9686003)(186003)(486006)(54906003)(7736002)(478600001)(76176011)(5660300002)(3846002)(99286004)(11346002)(446003)(61506002)(229853002)(66066001)(6486002)(14454004)(25786009)(305945005)(86362001)(14444005)(97736004)(6116002)(33896004)(6506007)(1076003)(4326008)(107886003)(102836004)(256004)(41533002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR18MB1447;H:CY4PR18MB1112.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: aBFjdU9xUeW4P6MfqstXUrhMYGNlBmM6+5KctO22FjiA8GSTa0UhNGgqoZnTjXiVduQr7kqJi3hhtXH4pssXEEGbHURu1GTVOX0j4+Yel0pB0Rw/ZE3NqV2pHZUydxslTNzCUEJpPr80P0oO/YfOJp1hO34NVQGm2VuDm4Pb9tPeRNo8mcYNWaPHnT3e44rFwiBKFfUYDnopbUtX8RGaUeof3V9MAeQ2l69SknjLWxqi666L7COKklbljIC0cf54rk5jfie7bc1LW0lox0P0DQH54tTD8w1YwTZBXOyTbpISKOruypkzBRWN7uE5bO0JBJhHUXLcqPGCXurDrNPQc2kMbP55YOmJkJcvaFzmfeYcY52jgEatunmiDXRY2s9wWoPUnSreuagXQm0svDK9WXF+9ALMH90yw1K1xFtlFyA= Content-Type: text/plain; charset="us-ascii" Content-ID: <4D9BED71F59D8240920C7657BDD8FDC9@namprd18.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f2d351cf-44f3-44e7-3a67-08d6965c62a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2019 11:21:25.3734 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR18MB1447 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-19_07:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=784 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902190085 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Mon, Feb 18, 2019 at 03:33:10PM -0800, David Miller wrote: > From: Vadim Lomovtsev > Date: Mon, 18 Feb 2019 09:52:14 +0000 >=20 > > @@ -169,6 +169,20 @@ static int nicvf_check_pf_ready(struct nicvf *nic) > > return 1; > > } > > =20 > > +static int nicvf_send_cfg_done(struct nicvf *nic) > > +{ > > + union nic_mbx mbx =3D {}; > > + > > + mbx.msg.msg =3D NIC_MBOX_MSG_CFG_DONE; > > + if (nicvf_send_msg_to_pf(nic, &mbx)) { > > + netdev_err(nic->netdev, > > + "PF didn't respond to CFG DONE msg\n"); > > + return 0; > > + } > > + > > + return 1; > > +} > ... > > @@ -1515,8 +1528,7 @@ int nicvf_open(struct net_device *netdev) > > nicvf_enable_intr(nic, NICVF_INTR_RBDR, qidx); > > =20 > > /* Send VF config done msg to PF */ > > - mbx.msg.msg =3D NIC_MBOX_MSG_CFG_DONE; > > - nicvf_write_to_mbx(nic, &mbx); > > + nicvf_send_cfg_done(nic); >=20 > If the one and only call site doesn't even bother to check the return > value, just make it return void. >=20 > Thanks. Thank you for your time and comments. I'll update patch and re-submit. WBR, Vadim=