Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp985322pxy; Thu, 22 Apr 2021 19:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/klWx9ljIhGdLIzURhDfFKa5Y2akbu8furtxbEcaHWPuLw61A3lzc0PaQNfBzBW3vUBtz X-Received: by 2002:a63:344:: with SMTP id 65mr1678285pgd.24.1619145320889; Thu, 22 Apr 2021 19:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619145320; cv=none; d=google.com; s=arc-20160816; b=xnNxaxFdJjLuqd11v4IKdVafCDeV5Crl1FHdZ4fK1IUf3ZPDUZFPulSoFUoKhOaHuP t+ql/4PXpLM4IbWzuMWjeqBFsMtW+cEsNayrQ8mpuhUzdafOrKV+ATHUD3M9f3BAKsIa Aghd8WHnOIMflOz0WZgIbxBeDoq+Ivv1y8tHgyMQZs9LJ9DpjiR/p/suFOUA9mzZFwsA LVXvfCmDtEKtjjtkJN0lGORIgjB5O2h5+1HMoSr0mHyEAcoc1smUyhjj8+EDNwl9CGeX Fj0hIp1Jz32SOQkY0Sfxp/JN29nNrTQiQFZoDIy0wyOtub8HSaMe5yBpmeGIMkVyVb+b W+kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=upXmbuxKEHe1Frac75yuLwrw35UBfEWE3IK73lIo86k=; b=tIHDuucrFedS0D+u6LT0bOmtdMlXsLTArcgSCJeuUfs9w69eoEt2jjyzz7O/gZop0F VYC33cnz34S01IGNtWy5WCw7bF5N+FlbmY+9SwztnOD2UVuDW6Jw00fHBdbwGb3Zc/qk SJ7l6toinBsTneOkvOvS3PUOfBiLIcqbBbZmiYi1S46J+8hmcD+uPYeleIYG4hEVSdeS UqkD0GWLK/Zo7v/jWt1vtuQQbJky+0+/eFkPeUGqPupjW/Dz1muk/CoaVHZhc0ZTsBgd gPmc/GORDrSZ4GMlUfkwQj/KD7iUJRn5Fx8DpgtZmkS++CnFO522G0JFUoaGww4frm4v JzlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A3kRZXQd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si5295029pgp.235.2021.04.22.19.35.09; Thu, 22 Apr 2021 19:35:20 -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; dkim=pass header.i=@linaro.org header.s=google header.b=A3kRZXQd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240048AbhDWCbM (ORCPT + 99 others); Thu, 22 Apr 2021 22:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236080AbhDWCbG (ORCPT ); Thu, 22 Apr 2021 22:31:06 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6428DC06174A for ; Thu, 22 Apr 2021 19:30:29 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id e25so17895400oii.2 for ; Thu, 22 Apr 2021 19:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=upXmbuxKEHe1Frac75yuLwrw35UBfEWE3IK73lIo86k=; b=A3kRZXQdL2jYMbW+ZspIY1YlC49pRKfSjXD1neVtvdAZFrL7MP4jVNGhbMkClzb0Xe L8Nh/QmJnjta502KyHXrVWW/BEjGDVaLApNdAVb4zy3I2GTRd0LDNlLOHgoCBdo5oupA ggFqk8zCQpmhdNqys+D15Grs1mjPnaOk0dWa5yKmFEKNO9oovCq6PNhMMtdA8nuFYOKl xNdNRZ2OraGVGzdVGLpnlQ3WvCupjJGo4no6pnnY0taBONzxodEC81KpmDIIE8abmymJ FkylEuWdZQRe83BJsXm9WWsXkGJBKP6Ixy417bQOuwx7Kv+xVjTItu5E8gCueWRPDOAM yF4A== 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:in-reply-to; bh=upXmbuxKEHe1Frac75yuLwrw35UBfEWE3IK73lIo86k=; b=DMqDDjudpUCFjnFgNI827n2N677mXhDWI2yQyc+N2ShZR7baryqvuUH+VOfiaEoBS6 fprtnjlvFZvWdSKou0rxlwb1imGB2VpdxIOHMbenRQEY77nUd4/OADYu1DJgOWyMAkF1 7qzsHmKFAn9kzwkMrbtUluBAHehAktoxoU+N9pouhua+9WzKNOBH17VS/oUOGNiE6dZ9 Y5uW5BEx/wfe+8G4CP3Z3cTM94kjh+OPRSQ7edyBXgSHuUmAf2d8JtRB2TB3jrdFpECQ VhP8iIZ2vUZjns8jjvTB2QjIv27QkZifUZe8N6B+tNNgzKruJ90aN9G7Uwo+6kqLPGyl qhJQ== X-Gm-Message-State: AOAM533c0IjPQ6c/pB6Voxx1GQf2oxWEJ+Vm/j+t2jQxJBJBSPtP/Kkj 44+3sQ9oe9lsCIXKoUHxlfirwQ== X-Received: by 2002:aca:f412:: with SMTP id s18mr1038501oih.144.1619145028674; Thu, 22 Apr 2021 19:30:28 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n13sm1050028otk.61.2021.04.22.19.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 19:30:28 -0700 (PDT) Date: Thu, 22 Apr 2021 21:30:26 -0500 From: Bjorn Andersson To: subashab@codeaurora.org Cc: Alex Elder , Sean Tranchetti , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Daniele Palmas , Aleksander Morgado , Loic Poulain Subject: Re: [PATCH] net: qualcomm: rmnet: Allow partial updates of IFLA_FLAGS Message-ID: <20210423023026.GD1908499@yoga> References: <20210422182045.1040966-1-bjorn.andersson@linaro.org> <76db0c51-15be-2d27-00a7-c9f8dc234816@linaro.org> <89526b9845cc86143da2221fc2445557@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89526b9845cc86143da2221fc2445557@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 22 Apr 18:28 CDT 2021, subashab@codeaurora.org wrote: > On 2021-04-22 12:29, Alex Elder wrote: > > On 4/22/21 1:20 PM, Bjorn Andersson wrote: > > > The idiomatic way to handle the changelink flags/mask pair seems to be > > > allow partial updates of the driver's link flags. In contrast the > > > rmnet > > > driver masks the incoming flags and then use that as the new flags. > > > > > > Change the rmnet driver to follow the common scheme, before the > > > introduction of IFLA_RMNET_FLAGS handling in iproute2 et al. > > > > I like this a lot. It should have been implemented this way > > to begin with; there's not much point to have the mask if > > it's only applied to the passed-in value. > > > > KS, are you aware of *any* existing user space code that > > would not work correctly if this were accepted? > > > > I.e., the way it was (is), the value passed in *assigns* > > the data format flags. But with Bjorn's changes, the > > data format flags would be *updated* (i.e., any bits not > > set in the mask field would remain with their previous > > value). > > > > Reviewed-by: Alex Elder > > What rmnet functionality which was broken without this change. > That doesnt seem to be listed in this patch commit text. > I recently posted a patch to iproute2 extending the rmnet link handling to handle IFLA_RMNET_FLAGS, in the discussion that followed this subject came up. So nothing is broken, it's just that the current logic doesn't make sense and I wanted to attempt to fix it before we start to use it commonly distributed userspace software (iproute2, libqmi etc) > If this is an enhancement, then patch needs to be targeted to net-next > instead of net Okay, please let me know what hoops you want me to jump through. I just want the subject concluded so that I can respin my iproute2 patch according to what we decide here. Regards, Bjorn