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=-6.0 required=3.0 tests=BAYES_00,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 2E4F1C433B4 for ; Thu, 1 Apr 2021 20:26:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 03098610E7 for ; Thu, 1 Apr 2021 20:26:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235522AbhDAU0W (ORCPT ); Thu, 1 Apr 2021 16:26:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234488AbhDAU0U (ORCPT ); Thu, 1 Apr 2021 16:26:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C4041610D1; Thu, 1 Apr 2021 20:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617308781; bh=+ADI3ZWqoI7tOnyvHGFLAJJYfYQrIAvsENPdPT3ibUM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fxhQ941Aq8w/9gL79MSLCqHYh3gupCPuO2f+oBsdQl+xmSpbXfZ4A05jkNRtAK4qw ByuhmCdcMAE9W89ZJubzR9ev35JNyqyFgEuh31U9BJDje9M4YGASayEQG2JlDj9GSz rtdXtJIafQb1Seqp9DTyPZ6y6CEPL34hQ+cJ0oC1eF1zViQWxjVTp4PbUOHggcEgxQ F6RgMMZVC+/BUsHU/sX2NRXRWIGYeZuemQb3Uhzx4/9yCye79Mew5Lf3r2PShWa52s 18Kj6BPsL4uMt9TRDfld2t4XoIUUxxWle38JugSBM25oGcPYVqZjWMFIkYBULnB6rk ZNieSaSZYMy6g== Received: by mail-lf1-f46.google.com with SMTP id w28so4674392lfn.2; Thu, 01 Apr 2021 13:26:20 -0700 (PDT) X-Gm-Message-State: AOAM531NR9mvpy03DNRMpT6JOLJTXYLitjpK0Xt6JLr1i4+AKqarlWjt LFFtemD3c9Qy5bABzC1CmqJ17EjcmghZr6hcjZI= X-Google-Smtp-Source: ABdhPJyMqaw9UhOoZtv1rXpK7K76xh6ObasOVb2EUurAdUxBt83Y3DG3a9lZvmDTB2PMIn1UrAAqB79NDsg2CmSLWxQ= X-Received: by 2002:ac2:5614:: with SMTP id v20mr6767163lfd.372.1617308779149; Thu, 01 Apr 2021 13:26:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Song Liu Date: Thu, 1 Apr 2021 13:26:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list To: Lorenzo Bianconi Cc: bpf , Networking , lorenzo.bianconi@redhat.com, "David S . Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Apr 1, 2021 at 9:49 AM Lorenzo Bianconi wrote: > > > On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi wrote: > > > > > [...] > > > > - /* Inject into network stack */ > > > - ret = netif_receive_skb_core(skb); > > > - if (ret == NET_RX_DROP) > > > - drops++; > > > > I guess we stop tracking "drops" with this patch? > > > > Thanks, > > Song > > Hi Song, > > we do not report the packets dropped by the stack but we still count the drops > in the cpumap. If you think they are really important I guess we can change > return value of netif_receive_skb_list returning the dropped packets or > similar. What do you think? I think we shouldn't silently change the behavior of the tracepoint below: trace_xdp_cpumap_kthread(rcpu->map_id, n, drops, sched, &stats); Returning dropped packets from netif_receive_skb_list() sounds good to me. Thanks, Song