Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1078975pxx; Tue, 27 Oct 2020 07:48:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu0IAER4a4TlAVQT2L6YIjbB7hnbHnPwkYqUFWZPjyIjawFmv0PRi7ZfqSFu9VKKrRdhrs X-Received: by 2002:aa7:d4c6:: with SMTP id t6mr2557654edr.372.1603810130605; Tue, 27 Oct 2020 07:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603810130; cv=none; d=google.com; s=arc-20160816; b=sbRBZ6LVBf1pkZmjuATqiNojlfl+LJN8swdzKh4XyJ1VqbNjM/bo+AX49plFoVnGRL zGsN4B6TX7jgL0PRCyknBQV3FswUeZemEWXDX2hzAWao30+FM9IH/BRjfTiQHHG+0lwz zAzv6/+6TqoVlZ0he6Frj5ExGbfxSIUO1A+O4laJOhTsEJm1H7L+/sJ8qBHBhgsASwPD h1YpwxPmy6t0Ce3M6reAcIAKCVXb127XvJWxQ0vbxysV9Nzzoyd+EHxM436JPvcIQqvf Ds+hhLs+1QH6rLKuK9Xl+OKB4uuy4afKzSmJAcqvTncKEf/64vXrlRnuz4c+xFMH5/9d dTjA== 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=NX3aMd8nOxmdYv1FMvBjyoMjhVdlhBSOsPMwKR/CR38=; b=QBPzjV/ExLYxo4vwWof6dTq4rE6Ty24K2wpYyYOkbInYiq4/lQzM1c0jp11vVD496M MiEKswLalXkynTkDiPrAQvHxOOavwt30qrBNrZNbd6EHsc8Ol7Wg0WopezzZ0z5QlVe+ Y00egc+O1wk0FjuEJrTa/Zu4uApwAhUbIprswJGHwbNK7a9JiPrbViPOspE2Zqz1Rz1Z sMbWKRbr5jKqkYwbm2/DQprSVoXOeWX0/ED/PdKTOBSJW0um6r+lXLn9H7hA2AHeQG4f Hg4tiCHSy76Sf9aITNxCWxklkmrsH6uA91N4DLBRNMyI19hErcW4XpWpA/Ux+PcFKRSf zWLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BNIE5eBY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si1130536ejk.493.2020.10.27.07.48.25; Tue, 27 Oct 2020 07:48:50 -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=@google.com header.s=20161025 header.b=BNIE5eBY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2899928AbgJ0Mbf (ORCPT + 99 others); Tue, 27 Oct 2020 08:31:35 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:38897 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411742AbgJ0Mbf (ORCPT ); Tue, 27 Oct 2020 08:31:35 -0400 Received: by mail-il1-f196.google.com with SMTP id p16so1326578ilq.5 for ; Tue, 27 Oct 2020 05:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NX3aMd8nOxmdYv1FMvBjyoMjhVdlhBSOsPMwKR/CR38=; b=BNIE5eBYuI7rcpMZ7Fc8fXqliKjnQxcjorZNJL1u/wBpIhZBPNm/oj2C1C6ZdxZGqP uAYGC/mtPEyUM4jNLBnAm4jxr4genpcgGd/TQ/ERBwsmskt1N17w//1kmUAuHUDUnICN NTh72+99x21FAoc2Rb5wYJc0zP7/BuMc6mdP6YIeVMTXUp09DbbKqxyiR0QbSxt9Uh9M PDmkAegg3yxK47MX7sNkSW2kPFFGSzm9nBayI2anXHD4KkqoCRkjPLjI9snUHdRjVihA 3vXx/MIX6pic4UTKz+mgxXOAbcTQne8C0eTtk/Ce5Xpl2con9KqsduAuDGrmvbvUEpCw 056w== 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=NX3aMd8nOxmdYv1FMvBjyoMjhVdlhBSOsPMwKR/CR38=; b=lXTXXf7bq/hrchWflTcI1ahh5AWdxRxZjdkPm/5VNuX+1uHBNDccvH3mFAAVEBv/NW l4oJkU2Fuou+PuIZnG2HOvVXr08o7ZGdMKLcRjMPRaPzOsAQh72ObFsyD6hn+niOAO7M OGb7OSLZ2Hak8LSXhg7dOuqFx1Qd0EsEq7hruxBXhXpn3F+mXAFBRjMxXnyxfQN5kYgu 4RICbwjUWugrqU+xzCiMadL/bdnYYafaFtRAVYL7//Y7Y50cx456FOM+qrZkS0dtd9p0 aS3OE8jic49cxtDCALnLz7K4Mv1RmxAsIf/DAZmGAiJZ4uqEsbeqG+JgpIYFmI6C7USZ DjbQ== X-Gm-Message-State: AOAM530Pz9yaR6/cpMhxY0BSnEgfhP6lg0QrDFKXkwgRfLlQMTWnu4JM 9MFeLY8SNnpZUXhEk+o6ldF9dDfTJE5hB168bfrwPA== X-Received: by 2002:a92:6504:: with SMTP id z4mr1446561ilb.282.1603801894156; Tue, 27 Oct 2020 05:31:34 -0700 (PDT) MIME-Version: 1.0 References: <20201026150851.528148-1-aleksandrnogikh@gmail.com> <20201026150851.528148-3-aleksandrnogikh@gmail.com> In-Reply-To: From: Aleksandr Nogikh Date: Tue, 27 Oct 2020 15:31:23 +0300 Message-ID: Subject: Re: [PATCH v3 2/3] net: add kcov handle to skb extensions To: Willem de Bruijn 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 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 exte= nsion objects. At the same time, one would expect skb_get_kcov_handle to return t= he latest value that was set via skb_set_kcov_handle. So if a buffer already h= as a non-zero kcov_handle and skb_set_kcov_handle is called to set it to zero, i= t should be set to zero. > skb_ext_add and skb_ext_find are not defined unless CONFIG_SKB_EXTENSIONS= . > > 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 version= .