Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp662592ybv; Thu, 13 Feb 2020 07:22:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyTx8Inz863gllj5V7U8IYa/tR5OIm3lSSNM98yoI2nfOX61aQhMfMablTygNuhQpOsh7/T X-Received: by 2002:a9d:53c2:: with SMTP id i2mr12916172oth.43.1581607368319; Thu, 13 Feb 2020 07:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581607368; cv=none; d=google.com; s=arc-20160816; b=FGmUipJjIqkezMIJNCN6HQSIjVtWMhIqpe82bhi8Bm92X9kIMTjhZhr+s+ziq6QH22 9sjHo7d92ibQEpIHE4JyeOdMxj6WwDl3f8zyAWPiD+cO3aZuq323XlVOotsqUnO6gBCf jwTB5oGJ0zSIsTURpnYX5rg4HCb0giMM2mTmKu3DrYbD8LlWlT+11go9GA1ZAueT2ism 3TpG0+2g1krjSd7XF469vKGEHdsMe5hVyuetPETBcm8QhHqzxZezGEkzXlLzCuzVmV5N UJH/fBqBDBHatpb31XvhfO6owm1mU30j5Fu2EAEqYOvh+d1KLr0iDXryqu2v9GU3ANWD MnBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=sg7JP3JVay2T20YRvFn/u3cS+1B1NiES9y/sI/tFeig=; b=UXIlFb/8z5lIIjKAwGrRXPhYNB1IdswXGFpYKNsoCG1HKRRHrgvHaiyXCc3F7fWt6C 5u6QQFSq9OkV25+ZbQ+gRoQy9CCv1DV2Zg0qRvkbkU4m+vwahJ1xozANa3432JwDkIyU y5i8S0/UaHgPfEr6nMZr89tBV2QfQ4hRkKna0jhX6PRJNhAm+uv3VlasVt+ghGcH4Ptt FNnFFKjyF8qBYwO6te+mVDsC7HcQj2TUwUC79YXVL0pE8k7QVpKmux2QrAlWjAxU7peK qrgK7ysWkxn2144XrcZOQVL6QUFdANUx8OKsHmUgA2y9CjPTHHj/DD3up81puKbGjihT EZxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Qz/f4Kh6"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si1271239otj.302.2020.02.13.07.22.35; Thu, 13 Feb 2020 07:22:48 -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=@redhat.com header.s=mimecast20190719 header.b="Qz/f4Kh6"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727821AbgBMPWV (ORCPT + 99 others); Thu, 13 Feb 2020 10:22:21 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:59052 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726937AbgBMPWS (ORCPT ); Thu, 13 Feb 2020 10:22:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581607337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sg7JP3JVay2T20YRvFn/u3cS+1B1NiES9y/sI/tFeig=; b=Qz/f4Kh6z7n6zhj4ns8P3PUrRhsXanr4Y1mqTQ8y+PzerssUfGRNltmpLguYDpg3RRK+A0 zO74YdrwKtcSZE2Kbg3w9DTxpr2JYk2Cvcz5d07KhtKqCpMEQwK4AtjKJimsiF/aP70frA Ih63j+a8Mnqi1u1F1hUdVm/M86xvMok= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-244-c64aTuVgNGC2tCQYBesUgg-1; Thu, 13 Feb 2020 10:22:12 -0500 X-MC-Unique: c64aTuVgNGC2tCQYBesUgg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 12F1410CE786; Thu, 13 Feb 2020 15:22:11 +0000 (UTC) Received: from ovpn-112-23.rdu2.redhat.com (ovpn-112-23.rdu2.redhat.com [10.10.112.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id C19148AC23; Thu, 13 Feb 2020 15:22:09 +0000 (UTC) Message-ID: <34daecbeb05d31e30ef11574f873553290c29d16.camel@redhat.com> Subject: Re: [PATCH 0/2] Migrate QRTR Nameservice to Kernel From: Dan Williams To: Manivannan Sadhasivam , davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 13 Feb 2020 09:22:39 -0600 In-Reply-To: <20200213091427.13435-1-manivannan.sadhasivam@linaro.org> References: <20200213091427.13435-1-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-02-13 at 14:44 +0530, Manivannan Sadhasivam wrote: > Hello, > > This patchset migrates the Qualcomm IPC Router (QRTR) Nameservice > from userspace > to kernel under net/qrtr. > > The userspace implementation of it can be found here: > https://github.com/andersson/qrtr/blob/master/src/ns.c > > This change is required for enabling the WiFi functionality of some > Qualcomm > WLAN devices using ATH11K without any dependency on a userspace > daemon. Just out of curiousity, what's the motivation for not requiring a userspace daemon? What are the downsides of the current userspace daemon implementation? Dan > The original userspace code is published under BSD3 license. For > migrating it > to Linux kernel, I have adapted Dual BSD/GPL license. > > This patchset has been verified on Dragonboard410c and Intel NUC with > QCA6390 > WLAN device. > > Thanks, > Mani > > Manivannan Sadhasivam (2): > net: qrtr: Migrate nameservice to kernel from userspace > net: qrtr: Fix the local node ID as 1 > > net/qrtr/Makefile | 2 +- > net/qrtr/ns.c | 730 > ++++++++++++++++++++++++++++++++++++++++++++++ > net/qrtr/qrtr.c | 51 +--- > net/qrtr/qrtr.h | 4 + > 4 files changed, 746 insertions(+), 41 deletions(-) > create mode 100644 net/qrtr/ns.c >