Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp252548imm; Mon, 2 Jul 2018 10:54:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd/7+IfyRFYdZDiQ2CkmZRjPm6FWvBB16idY/ffTuY/kwU6LHQ4/UVkH4UJqMIW25cncn7X X-Received: by 2002:a65:5288:: with SMTP id y8-v6mr21219889pgp.284.1530554086612; Mon, 02 Jul 2018 10:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530554086; cv=none; d=google.com; s=arc-20160816; b=0gidgPjhoiP0llpoB09pGReRchokxgSixW+SzQqMkcr5uT8ARr2wlfuyNGuNAbq4hy Mk/Cz12kDi7gTE+qXixrbBhwz9qtpW26ZPj2OL4TEkVoGk1Uojhf1eKXvrAL+hFl3oZs gFYFqET14TN/EBtxpSW8XbieBzbK1Ocv296azcF4T5fHNTyE8SlQIwAbTEA+HFY3sm4T uOXKkeqcOnBkyGH+gvMo00oQGyPUvAr5k+8ZQUtSubKfdc5f+9V1aCBW8Q3CgrVS7Cl4 luuq5PKUkgGnVPYJGtHFb6RuckS80rdtWpcmPMnW44ZhgjlK1MqtMQyDEu29pdKeTCp7 eegg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=BHY6ZYxXh/5SIU0rqcfR0+xK86kbiJ6vjr2Qlu+kZKA=; b=w8heTzmSBqoXt2A82D9FL0Zz2r9WFOOI+/TGI5H4tsClgybCsFyGiA92o+ve0f8wNF 9RGrmAbcpjUboFklihIHmC6hEo0CLSMJCNhQMO/vSoI84BprmZxeRezOV7NB4amK8I5i L7iIbH61BH4JmzR7IX2778MbyrtuIIe0x1hs3P4nTQlceO9lfCZkOdDx8fZ1LN91YneG Jqo5tuFAnJyPb8yYIB/HPgquqDFBo0ppFoMOkVmwtYLMo0Ey6H4xLp9nWlns4Xm+WqoL jhLzIEaz2V7ImkzlV2s/j9ujIxGxIyW5o6r8uKXJ6dSQwQxO8I4472lp+jHG8ZrjZXz5 4YRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b="OTh/wn2I"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j85-v6si18749555pfa.232.2018.07.02.10.54.32; Mon, 02 Jul 2018 10:54:46 -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=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b="OTh/wn2I"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753218AbeGBRxh (ORCPT + 99 others); Mon, 2 Jul 2018 13:53:37 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:55689 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753156AbeGBRxg (ORCPT ); Mon, 2 Jul 2018 13:53:36 -0400 Received: by mail-it0-f68.google.com with SMTP id 16-v6so13261375itl.5 for ; Mon, 02 Jul 2018 10:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=BHY6ZYxXh/5SIU0rqcfR0+xK86kbiJ6vjr2Qlu+kZKA=; b=OTh/wn2IC0mPu07QAxDO8vnUZOEcYbhXsepIjGzVoSw7c2iObjlE6hLZAFqrhRNhCO Y2TAnapW43ANw9UWAIZd914chvBUrfO/HY5kxwRAA9/V4B5nj+eaFIJhVXwZWJ1JYrKK 8gO4nAFiYwVC0NBseiZ7fE0B4frJ//C/+Fy5YJSIGEESHVkvx9hvYZIgHhRuz1htxH+t P0HmyiX3epHnt+r3jztuCzASpoUcCGgznb4lpLg8astq5dMGVSaKoXUnXIvb54Pq14XB sYkIPWglQeg7+P2E5SfGCWVOAvUhJB7r9o66gtYeM40QXf0o0npuvqZhl9hjhIPulR7E k8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=BHY6ZYxXh/5SIU0rqcfR0+xK86kbiJ6vjr2Qlu+kZKA=; b=Gqmvred3JlDShb7M1/Yrj/h+IF7UKq33ZajDOE1kpjUtwphlXMNFAFnyHTuAjtECbK PMAL+PoNpLMUOO49lLOLjBa73B775oWPhP3Gfb6u8O0JoY3TOLlymJCEFJu3PSjJEIEP /xn2Way7G1RfHcHg2wGVrHkB+l/NXxNFmNfnijc3tYK2YLSWzZ7xQbyTPMXR6X+Lofck 4r9vRDpKHLJAsdQjwN7lltN928soWqXZTVP0g74zOnvtvpTnRXMsp2pqVRi5rRe71E76 dPun1sc8LiVMyceyaktMNJUr3Ps4zCLss33sQ8c5CfBn+CT8fIcyKK8pElr5YjTDCf2r 176A== X-Gm-Message-State: APt69E2/i/xA6/ycjcsRGXtnRjD/tJa9bjY1GxUxatsDuquDXtPTW0Fx xiAFazQwtTE/WOaejKmsi0Eb7A== X-Received: by 2002:a24:ce41:: with SMTP id v62-v6mr6452250itg.57.1530554015668; Mon, 02 Jul 2018 10:53:35 -0700 (PDT) Received: from x220t ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id g81-v6sm6889874iof.13.2018.07.02.10.53.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 10:53:34 -0700 (PDT) Date: Mon, 2 Jul 2018 13:53:29 -0400 From: Alexander Aring To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Romuald Cari , linux-wpan@vger.kernel.org, Alexander Aring , Stefan Schmidt , "David S . Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?Q?Cl=C3=A9ment?= Peron Subject: Re: [PATCH] ieee802154: add rx LQI from userspace Message-ID: <20180702175329.lobhttvi6z6nkdzq@x220t> References: <20180607140802.22666-1-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jul 02, 2018 at 03:28:04PM +0200, Clément Péron wrote: > Could you review it please ? > sorry... I was thinking a lot what I can contribute to this patch, I want to make it short. I see your use case and your use case has of course a valid point. What I can say about the code? This socket layer was contributed a lot in a time where the subsystem was unmaintained. Stefan has some experience with this socket layer by doing some examples [0]. In my opinion I am confused that a lot of netlink handling is needed to do "something" with this socket layer. I already thought that we need some af802154ng for next generation. Known bug is also RAW sockets on af802154 are totally messed up... but we don't need them, this can be done by AF_PACKET (just need to think about similar handling there). --- Now to your patch, you use skb->cb there. The tc ingress part can _maybe_? use this control block information. I think this issue is out of scope because we have also other parts in the code how we pass data between driver and packet layer with skb->cb -> we simply do it wrong. I have no problems to have this patch inside but for future we should tackle a af802154ng with a better UAPI handling. If we fix skb->cb we just need to think about how to pass such data up to socket layer. - Alex [0] https://github.com/linux-wpan/wpan-tools/tree/master/examples