Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3665717imm; Fri, 19 Oct 2018 14:50:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV62SBuCEYAqWG6ku+HBEJo5Xdckr2DmblD64425anV5dsAz7wd6R9CDM3uFh8eVPKlj29ytD X-Received: by 2002:a17:902:bf44:: with SMTP id u4-v6mr7565790pls.48.1539985837084; Fri, 19 Oct 2018 14:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539985837; cv=none; d=google.com; s=arc-20160816; b=aytM2iXok7x7yKFR90B5IFLttpk1psOivu0tpXBzA3BrOz+uU6N3QBGiNPeDfsinb2 oonLkZhXSdirSU+ovYpFzklow40Q88/XOf21d8xaY+msvIzTViMLzFk9oIozxm97eM9H rHDJjgYc8OnR2H7JLZzDiJET0UH5jJ6t9LUDQVYDOSIOy/268xZ8DaLHMWpNqXlge+Y3 iLFZ/x/AMClAYOMi5zxeZsHX9UirEuek/vThUBZrMNuhWUPTiL/IWsFQE1Cme/y4EePX FmFtO7n5D8mSwkRv9CZKCchA75w7vryMui3LhRg9wLYEFS/3iWtJX0o6N7ojKE/oODto Yzrg== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Gzv9PiB5Bd1kE7uE0AGwt8M2agP3Ftq6UgigSnz+goY=; b=UjQnMCj5itfGBp6rjyjBcHRdix1ez6bOZCvU2sNMs2bXFnINyEKzSz5xUuxwp3OP+B Xfcs39gsyXPr9iAfdT0hHuZcCm99s3SVgVLcvrYtuAvECN2W4CQTWRnj+wqtwR9CvdJM 8aoJt01cSSWzo5KQGowwdock5S/SF+mTGJQ/wLrnsdtPbFus2+mOH8cmO2jvtKo0YAKU cisYvNodv8w3XPya2ojuuV/aQm5QRrbIyX3MhcE0PVmgPC1zqLvW1DAfL02Y81MX6gJ7 B2vuafmJOeoLdkKflcheflvpZjwxK+QtbEAiKQX0/7o7sqF4NIl0gDx2+XgobRBI7q/F wqnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@dell.com header.s=smtpout header.b=Vi8hlYD1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si27471742plc.224.2018.10.19.14.50.20; Fri, 19 Oct 2018 14:50:37 -0700 (PDT) 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=fail header.i=@dell.com header.s=smtpout header.b=Vi8hlYD1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbeJTF5s (ORCPT + 99 others); Sat, 20 Oct 2018 01:57:48 -0400 Received: from esa1.dell-outbound.iphmx.com ([68.232.153.90]:57784 "EHLO esa1.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbeJTF5s (ORCPT ); Sat, 20 Oct 2018 01:57:48 -0400 X-Greylist: delayed 666 seconds by postgrey-1.27 at vger.kernel.org; Sat, 20 Oct 2018 01:57:47 EDT DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1539985790; x=1571521790; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=e3G2PKsG2imjg7T1pMydF10IrOP0C1sL0Wb8z37I8Nw=; b=Vi8hlYD1wr+zxtttywzOsUAF/OaUtWQt/qa99xeeomNdRrsn8vxr1sIU 6e74Wjrxh9XFlt20ARvLZH4cm5XoTHDRZHYGSh4vYt7JaJ1eXK5rV9dxr VwPIH4vvuBZaus8hWkp8451FIS6zBxX88k3u6Xnr3hjWXh8xlrxShemOD 0=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EQAABNTspbhiWd50NkHAEBAQQBAQc?= =?us-ascii?q?EAQGBUQcBAQsBgVWCAhIoCowDX41HgXeVGIF6CwEBhGwChSo0DQ0BAwEBAgE?= =?us-ascii?q?BAgEBAhABAQEKCQsIKS+CNiKCYwEBAQMBEhUTLRIFCwIBCBQBIRBXAgQBDQU?= =?us-ascii?q?IGoJ/gXoInQiJVwEBAYFoM4oXjWaBEYMSilgCgSoBjRyPegYBApBkH4FPhHO?= =?us-ascii?q?JZ5YrAgQCBAUCFIFDgg5wgW6BToImDgmOGm+LBoEfAQE?= X-IPAS-Result: =?us-ascii?q?A2EQAABNTspbhiWd50NkHAEBAQQBAQcEAQGBUQcBAQsBg?= =?us-ascii?q?VWCAhIoCowDX41HgXeVGIF6CwEBhGwChSo0DQ0BAwEBAgEBAgEBAhABAQEKC?= =?us-ascii?q?QsIKS+CNiKCYwEBAQMBEhUTLRIFCwIBCBQBIRBXAgQBDQUIGoJ/gXoInQiJV?= =?us-ascii?q?wEBAYFoM4oXjWaBEYMSilgCgSoBjRyPegYBApBkH4FPhHOJZ5YrAgQCBAUCF?= =?us-ascii?q?IFDgg5wgW6BToImDgmOGm+LBoEfAQE?= Received: from mx0b-00154901.pphosted.com (HELO mx0a-00154901.pphosted.com) ([67.231.157.37]) by esa1.dell-outbound.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Oct 2018 16:38:15 -0500 Received: from pps.filterd (m0089484.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w9JLcQd5048451; Fri, 19 Oct 2018 17:38:50 -0400 Received: from esa3.dell-outbound2.iphmx.com (esa3.dell-outbound2.iphmx.com [68.232.154.63]) by mx0b-00154901.pphosted.com with ESMTP id 2n7ajvbupc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Oct 2018 17:38:50 -0400 From: Received: from ausxippc101.us.dell.com ([143.166.85.207]) by esa3.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA256; 20 Oct 2018 03:38:47 +0600 X-LoopCount0: from 10.166.135.98 X-IronPort-AV: E=Sophos;i="5.54,401,1534827600"; d="scan'208";a="1150324336" To: , CC: , , Subject: RE: [PATCH net-next 0/6] net/ncsi: Allow enabling multiple packages & channels Thread-Topic: [PATCH net-next 0/6] net/ncsi: Allow enabling multiple packages & channels Thread-Index: AQHUZpcNEQCD9YIJq0mCdRbo1sv1t6Ul8lWAgAEg4PA= Date: Fri, 19 Oct 2018 21:38:47 +0000 Message-ID: <79ee8c9befaa40e781bfeba4ba25d396@AUSX13MPS302.AMER.DELL.COM> References: <20181018035917.19413-1-sam@mendozajonas.com> <20181018.155647.1045018243241594303.davem@davemloft.net> In-Reply-To: <20181018.155647.1045018243241594303.davem@davemloft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.242.75] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-19_09:,, signatures=0 X-Proofpoint-Spam-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=853 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810190193 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, When I run the testing (enable multi-package (package 0 and 1) and=20 multi-channel (channel 0 and 1 on both packages)), I see there are two chan= nels with TX enable. When I unplug/plug network cable, it seems the behavior is to keep one TX p= er package, is it the behavior you expect? All channels are behind the same et= h2, I would expect there is only one active TX. I create the below file to expose driver's status. RX and TX are printing=20 from the follow variables. nc->modes[NCSI_MODE_ENABLE].enable, nc->modes[NCSI_MODE_TX_ENABLE].enable, cat /sys/kernel/debug/ncsi_protocol/ncsi_device_status; IFIDX IFNAME NAME PID CID RX TX MP MC WP WC PS RU CR NQ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D 2 eth2 ncsi0 000 000 1 1 1 1 1 1 1 1 1 0=20 2 eth2 ncsi1 000 001 1 0 1 1 1 1 1 1 1 0=20 2 eth2 ncsi2 001 000 1 1 1 1 1 1 1 1 1 0=20 2 eth2 ncsi3 001 001 1 0 1 1 1 1 1 1 1 0=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D M: Multi-mode P: Package ID W: Whitelist C: Channel ID PS: Poll Status RU: Running CR: Carrier OK NQ: Queue Stopped Thanks, Justin From: Samuel Mendoza-Jonas Date: Thu, 18 Oct 2018 14:59:11 +1100 > This series extends the NCSI driver to configure multiple packages > and/or channels simultaneously. Since the RFC series this includes a few > extra changes to fix areas in the driver that either made this harder or > were roadblocks due to deviations from the NCSI specification. >=20 > Patches 1 & 2 fix two issues where the driver made assumptions about the > capabilities of the NCSI topology. > Patches 3 & 4 change some internal semantics slightly to make multi-mode > easier. > Patch 5 introduces a cleaner way of reconfiguring the NCSI configuration > and keeping track of channel states. > Patch 6 implements the main multi-package/multi-channel configuration, > configured via the Netlink interface. >=20 > Readers who have an interesting NCSI setup - especially multi-package > with HWA - please test! I think I've covered all permutations but I > don't have infinite hardware to test on.