Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2856856pxj; Mon, 17 May 2021 11:25:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXsORprqCFUOeXnxmoqbz3H2dUKPN6/4kk4oV81WIi9/O1EFkW0gKHVdxrgZ6p1O4D317Y X-Received: by 2002:a05:6638:1482:: with SMTP id j2mr1297329jak.63.1621275905837; Mon, 17 May 2021 11:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621275905; cv=none; d=google.com; s=arc-20160816; b=R1DaIB8qB3W31XP+PFQF1CtW4mjV7JhYoxCa1PKOWUYiv6a1ah1NsLQDz+IFYImDJv eBrrYN/b4ILpeI4TFWvquMDYbDZoMullcqTzQKkCFeYvyjo/jbR4Zmh6Jku5H3lnrV/1 A+/y3rPGtk5kve6iTa3yZJJdcIthBlixBiL3KLW6gZe9vLl0TGC4OyP3nXqbEVP13gN3 2q4/Zhx0uufSt1lgHa5t//Qko0ZPV0/uXs5pWZ2xydzvZxr9lgGDQOdqc+dNRvGYsV+O oPEqgKaHii1XIydO1yoMyLRGJAlQcvg3VeAIqLH6DV6WCj/RDt4fuwvsXlQ604HZQW6S /jKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=XVO7CoSbSlpPyNFhKIt/POfid5N4Lt6h4sw/1kjg0Rc=; b=xJ6VMoDedY4GVKsFqPnVZ+68jxF7r7nIdPgEraCL+GvjGsweVDtOwbUXDfVa1WVh7H fpu/Xz8wzdxJXrnvw/KuiR97VkTW6fN0dRlZrrM1lK6r0wy4/1T0pAtRilkmsxBCmxGT ubVmMV06QVfF2axSNXcyUfXfI+UXEw02hnzQjTlTd1sbRebvlEqWslR7aiD587IpeD5D A9pkxTtZtaiCgkn1TtY0qwZq6MXa15X5qO1VZu+iR5UmpotW2dXa4O9Rl3ctaykj9yMR PbPpfWRqnobYiqcMWaYJca5Rd2cmjB1Q8RVhyW4lGUIIbhVeoR0pBA/ROiQSFVzAGwSV wJpg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si3017834jan.123.2021.05.17.11.24.52; Mon, 17 May 2021 11:25:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237139AbhEQMvy (ORCPT + 99 others); Mon, 17 May 2021 08:51:54 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:48895 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234579AbhEQMvw (ORCPT ); Mon, 17 May 2021 08:51:52 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-149-wut8-mPqOHOv3M2Sd2gB7Q-1; Mon, 17 May 2021 13:50:33 +0100 X-MC-Unique: wut8-mPqOHOv3M2Sd2gB7Q-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 17 May 2021 13:50:30 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.015; Mon, 17 May 2021 13:50:30 +0100 From: David Laight To: 'Neal Cardwell' , louisrossberg CC: "linux-kernel@vger.kernel.org" , Netdev Subject: RE: Listening on a TCP socket from a Kernel Module Thread-Topic: Listening on a TCP socket from a Kernel Module Thread-Index: AQHXSr+3GMYNZUgdCkOEAPNeLW2sIqrnnyqg Date: Mon, 17 May 2021 12:50:30 +0000 Message-ID: <576922badb254ef0a73443a7752ba9c8@AcuMS.aculab.com> References: <5J_z4QNPMBAk4y0rGshI7mBykT1tivh3037CbQRYXTu_Ra6zuojEcI0RB04ghXQxgdtDbt3YFv6sA882mrFyTdzQePwHwvLoECnqFTnYNZI=@protonmail.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTmVhbCBDYXJkd2VsbA0KPiBTZW50OiAxNyBNYXkgMjAyMSAwMjo1NQ0KPiANCj4gT24g U3VuLCBNYXkgMTYsIDIwMjEgYXQgNzoyMCBQTSBsb3Vpc3Jvc3NiZXJnDQo+IDxsb3Vpc3Jvc3Ni ZXJnQHByb3Rvbm1haWwuY29tPiB3cm90ZToNCj4gPg0KPiA+IEhlbGxvLCBjYW4gc29tZWJvZHkg cG9pbnQgbWUgaW4gdGhlIHJpZ2h0IGRpcmVjdGlvbiBmb3INCj4gPiB3aGF0IEkgd291bGQgdXNl IHRvIGxpc3Rl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