From owner-freebsd-net@freebsd.org Fri Jul 6 06:41:59 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F78B1045922 for ; Fri, 6 Jul 2018 06:41:59 +0000 (UTC) (envelope-from lars@netapp.com) Received: from mx144.netapp.com (mx144.netapp.com [IPv6:2620:10a:4005:8000:2306::d]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "mx141.netapp.com", Issuer "Entrust Certification Authority - L1K" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58CF28E804; Fri, 6 Jul 2018 06:41:58 +0000 (UTC) (envelope-from lars@netapp.com) X-IronPort-AV: E=Sophos;i="5.51,315,1526367600"; d="asc'?scan'208";a="267447947" Received: from vmwexchts03-prd.hq.netapp.com ([10.122.105.31]) by mx144-out.netapp.com with ESMTP; 05 Jul 2018 23:41:55 -0700 Received: from VMWEXCCAS12-PRD.hq.netapp.com (10.122.105.30) by VMWEXCHTS03-PRD.hq.netapp.com (10.122.105.31) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 5 Jul 2018 23:41:55 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (10.120.60.153) by VMWEXCCAS12-PRD.hq.netapp.com (10.122.105.30) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 5 Jul 2018 23:41:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rbzZ7ZJb+UexOxCRt+J4v5XS78e3RAzflfL64VVRGNQ=; b=UiJfALWJ4LsAtbzsNKEtfJoibcYpXIZ+VBbv0S7QdumgQ/wC1IP3GxTTo4hBXxIuk540PhOrraoh2kVA6XSIAuS/1Vb6tndh/spOXcSH/U9NeSGaUwBDdj6HHvVtgeynsLpfgsDU7pve03lyktKYG5EiCTSryHts+L8jlK8u3uI= Received: from BLUPR06MB1764.namprd06.prod.outlook.com (10.162.224.150) by BLUPR06MB162.namprd06.prod.outlook.com (10.242.190.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.930.20; Fri, 6 Jul 2018 06:41:54 +0000 Received: from BLUPR06MB1764.namprd06.prod.outlook.com ([fe80::f983:bf6c:8b8f:c82c]) by BLUPR06MB1764.namprd06.prod.outlook.com ([fe80::f983:bf6c:8b8f:c82c%6]) with mapi id 15.20.0930.016; Fri, 6 Jul 2018 06:41:54 +0000 From: "Eggert, Lars" To: "np@FreeBSD.org" CC: "freebsd-net@freebsd.org" , Giuseppe Lettieri Subject: Re: netmap & chelsio Thread-Topic: netmap & chelsio Thread-Index: AQHUFHIu6gR6TPNxhkmYOpx9+YLSkqSAxfoAgAD5+4A= Date: Fri, 6 Jul 2018 06:41:53 +0000 Message-ID: <0199F257-F9D2-41D0-B4F9-26FBA1607F61@netapp.com> References: <94019926-B14F-47AB-8AD9-C01B4A0E199F@netapp.com> <20180705154710.GA3353@ox> In-Reply-To: <20180705154710.GA3353@ox> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3445.8.2) authentication-results: spf=none (sender IP is ) smtp.mailfrom=lars@netapp.com; x-originating-ip: [217.70.211.15] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BLUPR06MB162; 7:7UNKubi7UZprQaMDOyKe/uGaSRaZGkCcSu3zR1UDefkcIX4si6tB6PWwHJdTiUuXZugd28UWKcq4xS0keBqE1I5XI+/Ev1mrjmh0hh/bt3vYg3iqD3oFjZWPw/UX0bU8288d/xiDlhsiHLL44NjzMsGO2uxKRg9CXVMFaEhhnsfo3/6AxZ6lw5kmm6ejmdngzL+23dBUFxdxkdLz+zJT144WKX0K87QwLDqLgJ+xUwaeFFaJPvPDIQjpZSNB0XOi x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 1c86fc48-26c8-4b6c-b64d-08d5e30b8fe0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(49563074)(7193020); SRVR:BLUPR06MB162; x-ms-traffictypediagnostic: BLUPR06MB162: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(102415395)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BLUPR06MB162; BCL:0; PCL:0; RULEID:; SRVR:BLUPR06MB162; x-forefront-prvs: 0725D9E8D0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(136003)(346002)(376002)(366004)(199004)(189003)(54094003)(6512007)(305945005)(2501003)(4326008)(86362001)(229853002)(14454004)(6486002)(8676002)(6436002)(6246003)(53936002)(8936002)(478600001)(57306001)(7736002)(316002)(36756003)(83716003)(25786009)(2351001)(97736004)(4001150100001)(82746002)(54906003)(5250100002)(99286004)(6116002)(2906002)(186003)(99936001)(26005)(102836004)(50226002)(446003)(6506007)(53546011)(5640700003)(3846002)(2900100001)(33656002)(76176011)(66066001)(68736007)(6916009)(81166006)(486006)(2616005)(5660300001)(11346002)(476003)(1730700003)(256004)(106356001)(105586002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR06MB162; H:BLUPR06MB1764.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: netapp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 0kXq0ZlwoFNdELIYIEUFbaDiuhRuZLxWBUpDpy01Brtevty2n0u5XwDzODoJ3QFzKbTL0GMtf0cNK/1hL064fFKFcBKV5HBNi15YllWGjNd82HEHLUfWqbD51XknozK+qe1x7WnmRFcOxz4JcCvoi4/iJKSlpDTX5T0F3odCFWXEsrY/Z2PrpY9bpgTfSnF1sTzobDS6soXw4281JUef5altP/wgZ2P5yc/2nZJMc0sGo8BxniD0VC0q5xAyDVI/KoinlJFhx7A8qBUFO3e/hW7nviwlXAaWiDZgrHUhzLo37xgYrZhwcWVqlxNlE2/ElgBrP2MKtkrVbm6P/S9646P5h5jU0YFsjQPwPITj8b8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/signed; boundary="Apple-Mail=_F8A9ECC3-E0A1-40A6-BACB-A399A6385DAF"; protocol="application/pgp-signature"; micalg=pgp-sha512 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 1c86fc48-26c8-4b6c-b64d-08d5e30b8fe0 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2018 06:41:53.9966 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR06MB162 X-OriginatorOrg: netapp.com X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2018 06:41:59 -0000 --Apple-Mail=_F8A9ECC3-E0A1-40A6-BACB-A399A6385DAF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, On 2018-7-5, at 17:47, np@FreeBSD.org wrote: > Set hw.cxgbe.fl_pktshift=3D0 in loader.conf to stop the chip from = doing > this. See cxgbe(4) for details on the knob. It's a historic > optimization that doesn't seem to matter on modern CPUs, so the driver > default should probably be 0 instead of 2. thanks, I must have missed this in the man page. Looking at this in detail now, I wonder if there are other loader = settings that should be set for netmap use, such as = hw.cxgbe.buffer_packing=3D0 and/or hw.cxgbe.allow_mbufs_in_cluster=3D0? Thanks, Lars --Apple-Mail=_F8A9ECC3-E0A1-40A6-BACB-A399A6385DAF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmpq0ZpSoejRmyhheVLXDCb9wwVcFAls/DzEACgkQVLXDCb9w wVemlRAAnwvQof8vOXcuqhZSNPyPNrJ8l28dSUg/TRSWrkro5dEhrm4dIFYunqIv atZWBNNdU/WXRGrDtMPCAem9TtJmauMlnoDQY3PEAYODXBga2iLE+hmsJM4f1ch7 77kfJVwkXiuZp3iSNSrc9dkgy6CovnQJ8QcSxh8AmnkfAFRs0fD1uKR7KECFemdX YMkP5soXBHaiYsE5rt8OHrT0HzfZKQJgd9nmS6N3HCyF/2q2DEYO50V4wnjjsOIH pkx6N/b8c5BDZuaT7/MNzV5XzNEQEFsPDykfTS7uGvQWlq5mrT9u+0RC3cZU7cnR +r376tWI3WUwtTQFQKdm7UWQpMP9Xg5w7R4YN8rbPNo/2WVmluKKWiXeNu+kLKXY +av1EzIPB+9iCsqjWqH2Ulq/2++5C8NC+zAUtccpnB1Te67lbhVZY7WNgxmULvbD xB0RVHBDuYpc1/AxLBTUFNrCqQyz2IaJ3kEXyE0wvY29rcvylzZM8jsajBRFXrNm +Q/5y/+l4bdloGQzVG0oAxVV7FZE9mhaSpGSU5xJGqgfU74QA4B49hb/LHkvmzss 2Z6rwCHQOvt2halXxdrWfR+9358jTf0vtibPQ+RKFjPsk8eddiVLf/8lq7kv3Fdb RXu44BjnIf0KuETJIuGRlhtxMRkuggYdxhp12ujd+ZXZ1ykD8FI= =2lwG -----END PGP SIGNATURE----- --Apple-Mail=_F8A9ECC3-E0A1-40A6-BACB-A399A6385DAF--