From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15D47C3F2CE for ; Wed, 4 Mar 2020 18:28:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5BFD217F4 for ; Wed, 4 Mar 2020 18:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583346524; bh=0s3JTtmYyRMFJaVe0c1fo7At/U0Qok2COH8GUyhoRXc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=SUJ825Xy9Q6zrBL62nt4X7LjxUCRAl+xy7hQ4xRTRUioTtL/Fx89xEZA3YUcx8gUV 9/7fSXCVfFEzqquypqZYgiuEjRa/xIeH+D9LtWVtIsOGV3MmeHH+FGtd4gj21+CmXB TAmmLN7HJM9dc3DvzG5nVjVSMR1iB1crGrxgNNVo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729923AbgCDS2o (ORCPT ); Wed, 4 Mar 2020 13:28:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:55934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbgCDS2n (ORCPT ); Wed, 4 Mar 2020 13:28:43 -0500 Received: from kicinski-fedora-PC1C0HJN (unknown [163.114.132.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A148B21775; Wed, 4 Mar 2020 18:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583346523; bh=0s3JTtmYyRMFJaVe0c1fo7At/U0Qok2COH8GUyhoRXc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jtLRmbQ2+FWuvfmLNmYeK7PVJAaD8N0pAaXX+OEXAY/gVmDp2qRYk4y4/apZOZ9/o hfyRo3UHV/qdnsFc1orsMn/+3dYBF/4jRK01W9NDIA40B7Y0g4Bn2QsvWTy8LN5ODf VSJgeERQ+z1FSs0Ez3OrHayCQz5YdKc/HFUbDFTo= Date: Wed, 4 Mar 2020 10:28:40 -0800 From: Jakub Kicinski To: Edward Cree Cc: Alexander Duyck , Michal Kubecek , , , , <_govind@gmx.com>, , , , , , , , , , , , , Subject: Re: [PATCH net-next v2 01/12] ethtool: add infrastructure for centralized checking of coalescing parameters Message-ID: <20200304102840.3fb9eef2@kicinski-fedora-PC1C0HJN> In-Reply-To: <410f35ef-b023-1c24-f7e7-2724bae121ff@solarflare.com> References: <20200304043354.716290-1-kuba@kernel.org> <20200304043354.716290-2-kuba@kernel.org> <20200304075926.GH4264@unicorn.suse.cz> <20200304100050.14a95c36@kicinski-fedora-PC1C0HJN> <45b3c493c3ce4aa79f882a8170f3420d348bb61e.camel@linux.intel.com> <410f35ef-b023-1c24-f7e7-2724bae121ff@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 4 Mar 2020 18:16:13 +0000 Edward Cree wrote: > On 04/03/2020 18:12, Alexander Duyck wrote: > > So one thing I just wanted to point out. The used_types won't necessari= ly > > be correct because it is only actually checking for non-zero types. The= re > > are some of these values where a zero is a valid input =20 > Presumably in the netlink ethtool world we'll want to instead check if > =C2=A0the attribute was passed?=C2=A0 Not sure but that might affect what= semantics > =C2=A0we want to imply now. I mean... it's just a local variable in a helper... :) I think netlink will need its own helper based on attribute presence, as you said.