Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1081403pxx; Tue, 27 Oct 2020 07:52:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqncOXVpeDC12Y0CVTo1venoY3VTpyJ6XTrZxxMd34TDhsr67whQoBazWn7CwVygZLPvD3 X-Received: by 2002:a17:906:3e17:: with SMTP id k23mr2902911eji.414.1603810360144; Tue, 27 Oct 2020 07:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603810360; cv=none; d=google.com; s=arc-20160816; b=VqyfZ1hJMjireRT6/JQgWiHL0luG+hkCSQ4E86PYoicNuSCUT74VEPDl6X0zVfvTlV Y9kuAxvkE4PSBkBQsiBXB1OTEcsQav/HufDY6qtHvSmIaD5wlVudyFMKzG027wN3PYu7 gxJdjBP8PYWTh+9F2KL5iqRU4q4u+59wnP14voLW+E2/hF1lIARv9pXO7x56QWWBb50T 0CHYYS665kVbBpnoJYHnZKo14l4N4HBDVtvJzDVyrj0rnCMmfp38s11eGehTS5Tkit+s 7BZlXNNvtduZP60PzzHX+LpXG+Ruc7ZVNW/va2VrNnX3xjVnwIYvYG82zAkyskPULQDe RWrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tXCh10L6SQ/i1jAypyelKxw6+jw7G2ndnRAA6TkZnhQ=; b=Wqpf/qDEnFbZ23DZLAqYX439VaHbMmkWqEobU5Wkks/ndoiI89vHb/OlmnjISYRroe VdViYmtaLGKJ9x+Wlu9+sECIWMw7dBEKbGGStMYf0bmghZjBw4YzayRe/DqjKPaVzAIm q84J1P7AzhT5sx3qMYFnzqanp1RAsEVqPPurjoH9sHkpgW/2Usbk5L/KO/23MlNBYvyy SHS9PdlV6RtNlydw4gmDlpEL4YJQ7PyAJIUwr1eJb8GhpshhNRtdMrIlGwCJKocOTruf QUlYurrf4RI0s9EEuTtRPJ06ojK1SPldycHVsVAP+OV7F5gmjowgEPtl7Rxdcoi1OtA7 0jGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bbdR283h; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn26si1057325edb.171.2020.10.27.07.52.14; Tue, 27 Oct 2020 07:52:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@gmail.com header.s=20161025 header.b=bbdR283h; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2900525AbgJ0NOI (ORCPT + 99 others); Tue, 27 Oct 2020 09:14:08 -0400 Received: from mail-ej1-f67.google.com ([209.85.218.67]:45723 "EHLO mail-ej1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2900513AbgJ0NOH (ORCPT ); Tue, 27 Oct 2020 09:14:07 -0400 Received: by mail-ej1-f67.google.com with SMTP id dt13so2122901ejb.12; Tue, 27 Oct 2020 06:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tXCh10L6SQ/i1jAypyelKxw6+jw7G2ndnRAA6TkZnhQ=; b=bbdR283hpRGZjvgIPzlZojPzICFZFefNUuU5ZTlnsljeK+GFNOK7wCkzS+drlzHePv g+hz5vMd0UqX5sfyP/Ykd2OekHy/yUcHcugq1BA0hVTv3fuiYpDof8I2xYYV2fL59aPD Vr9fXAW/9YJSSBYiRN3cgyG0FapXrD+codJhGe8srHeEQXSJNxhT17h2wVqEDJpxDwHB xD7q/2ySeRc0dA1BYSA8Xyg7PwQgKLUKyzZF+I0hC7HjGnxa9prORGUnCdUkEM7UXFPo CQHANjdy6ZIQyBS8syaW7BOYCa1fU1lazGllPME/IPJ4IftHghTSqnUQelV3djkEoPCB ybTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tXCh10L6SQ/i1jAypyelKxw6+jw7G2ndnRAA6TkZnhQ=; b=FA1JgR/NCfji4bCrgmMpWBCVf2e6WRwymjTpwtoFjVcPHosuDgGdSWH5lpl2Am6mmp ODk6Y8OUDNsz4WED2B4/WMikwbQ3KOFvQrh0BTnOoUHqQttKuwUqpoQU/1KqGZnLoSh3 jC+FJUgBk6b/I2G0D35bdU/U976lCexuPrVuqYccy6fCQ4v1jlt/XZqr+K1RyvvS6fle qeMXK8lqV2HOQEm+LqCRkzwcjutWwqM/RiBnTxqZS0667SHj+a65BE2gF/pIxPpLqSRr t2coUoNd+46R3UkllzK+inoKauz2MvNZk8gEASXYnKo1AopbOzp+RDdQWwIWcm3nfWPB qDHw== X-Gm-Message-State: AOAM530Q+lnAGsPAe1dhU8ijYeAItM3n9pD/xDMy9EZRzssRPTQFfq5Z 97E0Zz7te++r1Y7F6PzAw40mRb426lmEOYVHvjU= X-Received: by 2002:a17:907:204c:: with SMTP id pg12mr2239886ejb.464.1603804444784; Tue, 27 Oct 2020 06:14:04 -0700 (PDT) MIME-Version: 1.0 References: <20201026150851.528148-1-aleksandrnogikh@gmail.com> <20201026150851.528148-3-aleksandrnogikh@gmail.com> In-Reply-To: From: Willem de Bruijn Date: Tue, 27 Oct 2020 09:13:29 -0400 Message-ID: Subject: Re: [PATCH v3 2/3] net: add kcov handle to skb extensions To: Aleksandr Nogikh Cc: Aleksandr Nogikh , David Miller , Jakub Kicinski , Johannes Berg , Eric Dumazet , Andrey Konovalov , Dmitry Vyukov , Marco Elver , linux-kernel , Network Development , linux-wireless Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Oct 27, 2020 at 8:31 AM Aleksandr Nogikh wrote: > > On Mon, Oct 26, 2020 at 7:57 PM Willem de Bruijn > wrote: > [...] > > If the handle does not need to be set if zero, why then set it if the > > skb has extensions? > > The point of that condition is to avoid unnecessary allocations of skb ex= tension > objects. At the same time, one would expect skb_get_kcov_handle to return= the > latest value that was set via skb_set_kcov_handle. So if a buffer already= has a > non-zero kcov_handle and skb_set_kcov_handle is called to set it to zero,= it > should be set to zero. I see. I thought it was some best effort approach: if there happens to be space, use it, but don't allocate. Which I did not understand. Could you rephrase the comment to make more clear that this is about clearing a possibly previously set value. > > skb_ext_add and skb_ext_find are not defined unless CONFIG_SKB_EXTENSIO= NS. > > > > Perhaps CONFIG_KCOV should be made to select that? > > Yes, thank you for pointing it out. I=E2=80=99ll fix it in the next versi= on.