Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp341160imu; Thu, 20 Dec 2018 23:34:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN4knZVyittT3ZnxLvlUIAkgp7P7UjrJJELHWdr4FQDwwNlx60rKA0czvKkp0ihDH9fcJNQC X-Received: by 2002:a63:7418:: with SMTP id p24mr1386276pgc.196.1545377657903; Thu, 20 Dec 2018 23:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545377657; cv=none; d=google.com; s=arc-20160816; b=ICrvPprmrcsAwPr5xNuZBPzd61YuKbemGa+Ng2SydC/nDwDY0nWCTxCW7i8Sjjde9/ nFlSBf+kxFxfqKLxbBlXRMVdfkEvqIXsj8NoEorXioCLikM6SvhNVfs5rtw6QMAyVOz2 AJ+vxOeBGSdnEQ3MzCzo6mjHX5IwXCR0S9aonxVf8NLCtMdYs71CCactRkEBhy6WA0f6 Yz99RjKIDhyADVxan2tdG+O3dN2lgyw67Jig+pAVSaujwjfysk4XaJ08ZiIO1mk5JWu2 HdUNr/Qfq8Pq7c2Ij98sLX1HsInJ40m1owhlBVM7TgY36xFkoSoH4tFBwdGqHTPARaUO 7QOA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Gg/7F32IU5jkypBhCdUsGS3sfdxCayLGx5aVLdd0pUI=; b=WK6EsaAEoKXSRQlC0AKusxkZncH4/BfkTvMAfw/QsHx3QXySE4hyPYFMJRDO1kp3pN Dl4lVhBX59vUfwOpXbcE9NHqXSrrCflsUx1lYXQ9m+KpqmrkjFYsXdj/ui7GoaoINozn uqoWiyHp/VZRMyq/jIlq3LVD5h15xJ0x1CDj0yONW/k5110RDLJhMFU+/cByZRuxjwgy iEr0O+Da1pNw2DorFIq9EI6dKWL4/2k27Mq2h6+DJCklBYeJNMxxCcyICl97aZz2kN9q ZM0jN3kNeTzt1zcv0q5as3RmlSvpTFfcQ0uJvu98Pf1+Q1/51nblLoDsfbpJoEhwk8kI djQA== ARC-Authentication-Results: i=1; mx.google.com; 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 y12si20407430pgf.527.2018.12.20.23.34.02; Thu, 20 Dec 2018 23:34:17 -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; 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 S2390050AbeLTVmQ (ORCPT + 99 others); Thu, 20 Dec 2018 16:42:16 -0500 Received: from zimbra.alphalink.fr ([217.15.80.77]:36792 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732606AbeLTVmQ (ORCPT ); Thu, 20 Dec 2018 16:42:16 -0500 Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 762DA2B52055; Thu, 20 Dec 2018 22:42:13 +0100 (CET) Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5lChRjmE2B19; Thu, 20 Dec 2018 22:42:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id EC4872B52128; Thu, 20 Dec 2018 22:42:11 +0100 (CET) X-Virus-Scanned: amavisd-new at mail-2-cbv2.admin.alphalink.fr Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DfON7dK03xSg; Thu, 20 Dec 2018 22:42:11 +0100 (CET) Received: from localhost (170-0-140-95.reverse.alphalink.fr [95.140.0.170]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTPSA id 980792B52055; Thu, 20 Dec 2018 22:42:11 +0100 (CET) Date: Thu, 20 Dec 2018 22:42:15 +0100 From: Guillaume Nault To: Sam Protsenko Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ppp: Move PFC decompression to PPP generic layer Message-ID: <20181220214103.gq67pakntf4bqkrr@kdev> References: <20181220182920.4208-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181220182920.4208-1-semen.protsenko@linaro.org> 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 On Thu, Dec 20, 2018 at 08:29:20PM +0200, Sam Protsenko wrote: > Extract "Protocol" field decompression code from transport protocols to > PPP generic layer, where it actually belongs. As a consequence, this > patch fixes incorrect place of PFC decompression in L2TP driver (when > it's not PPPOX_BOUND) and also enables this decompression for other > protocols, like PPPoE. > Nice to see PFC implementation moving to ppp_generic. > Protocol field decompression also happens in PPP Multilink Protocol > code and in PPP compression protocols implementations (bsd, deflate, > mppe). It looks like there is no easy way to get rid of that, so it was > decided to leave it as is, but provide those cases with appropriate > comments instead. > Thanks a lot for taking care of all these particular cases. Reviewed-by: Guillaume Nault Just a side note, this is for net-next. It's better to make that explicit by using a subject prefix like [PATCH net-next]. > Signed-off-by: Sam Protsenko > --- > Changes in v2: > - Fix the order of checking skb data room and proto decompression > - Remove "inline" keyword from ppp_decompress_proto() > - Don't split line before function name > - Prefix ppp_decompress_proto() function with "__" > - Add ppp_decompress_proto() function with skb data room checks > - Add description for introduced functions > - Fix comments (as per review on mailing list) > Also, for networking patches, list of changes normally goes into the commit message.