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=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 81D55C433B4 for ; Tue, 13 Apr 2021 19:41:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6093E613C4 for ; Tue, 13 Apr 2021 19:41:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238708AbhDMTmM (ORCPT ); Tue, 13 Apr 2021 15:42:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:52094 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbhDMTmK (ORCPT ); Tue, 13 Apr 2021 15:42:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618342910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l3Xd6e7Tcsaita/bxhL5mEvFZaDd27wDdsSc3xDLpDY=; b=Aa6gDRSKhUshAR6qSEXtbpEG4TdGFHzZvJJy4NrdZlSfn/z63bz8ODUl4hz1l2tnCoigzl DcjU1NRDrpEQvs7J5aQdymiL48vMikWOWHw2/QoeUQFTCA9Iw92Mco2Fh6bMYAEnj1WzE9 6zHMeG/oPZjOcrKyahpUTn++Z7Je3Ds= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-141-dY5zEZ6YPzG11M6w_6TB_Q-1; Tue, 13 Apr 2021 15:41:49 -0400 X-MC-Unique: dY5zEZ6YPzG11M6w_6TB_Q-1 Received: by mail-ed1-f70.google.com with SMTP id r15-20020a50aacf0000b0290381d5d3eb2fso1829910edc.7 for ; Tue, 13 Apr 2021 12:41:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=l3Xd6e7Tcsaita/bxhL5mEvFZaDd27wDdsSc3xDLpDY=; b=HxQJWoGy8Af7JRTdA4HqxBTkCOAjwwhAuXLeWa53lo7kHxueucTxxMmqE+2GSJQq+Q 7mXDrl6bLeF/ERRqihNZx3oBRRPGXhqBwHwS0qyglHZEoU/qgLfXS5mwm4ASF3tyM4b8 +GBzwU40/V+/KwQJGPidmtURVe1/J4S+XGvEQkWjswgUo8Qi0sK+385dZ7Gjwj2TZPud ep73nt0EwOVRadB2XTEKucBcABg8Xll856TBRibAywI2ZVut3sVaNrfusuQ+39gK9G6L nh5ukPTmDIfqmDXOaH9h7Dk9QN+w4tabt6IMQCaZ3CwB/HMINVq0L/iQNwiWAQ6v4Rzq p1PQ== X-Gm-Message-State: AOAM531I789KmKglJrwziv7BDvICGn3SzxCjZu0HWW5OmdNN/AsLefGC ubEJAa5nU/Mf4X4RTkC/YV44Cv563TEa5uNnI1D64YNYRW8d1lN0yZncxfgEKRJI2M6xMBj8a0u ytb5Mo1i+/cMvyRe2 X-Received: by 2002:a50:ee17:: with SMTP id g23mr23348812eds.45.1618342907855; Tue, 13 Apr 2021 12:41:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvpdeF9svdWjMVbV2DfqtSl2u4QrSYZVmGOD039HoFJzj67/OERJjVYP3+RQd1Uuii9f5eAg== X-Received: by 2002:a50:ee17:: with SMTP id g23mr23348779eds.45.1618342907425; Tue, 13 Apr 2021 12:41:47 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id s11sm10026689edt.27.2021.04.13.12.41.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 12:41:47 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 443771804E8; Tue, 13 Apr 2021 21:41:46 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Lorenzo Bianconi , bpf@vger.kernel.org Cc: netdev@vger.kernel.org, lorenzo.bianconi@redhat.com, davem@davemloft.net, kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net, brouer@redhat.com, song@kernel.org Subject: Re: [PATCH v2 bpf-next] cpumap: bulk skb using netif_receive_skb_list In-Reply-To: References: X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 13 Apr 2021 21:41:46 +0200 Message-ID: <87lf9mm0p1.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Lorenzo Bianconi writes: > Rely on netif_receive_skb_list routine to send skbs converted from > xdp_frames in cpu_map_kthread_run in order to improve i-cache usage. > The proposed patch has been tested running xdp_redirect_cpu bpf sample > available in the kernel tree that is used to redirect UDP frames from > ixgbe driver to a cpumap entry and then to the networking stack. > UDP frames are generated using pkt_gen. > > $xdp_redirect_cpu --cpu --progname xdp_cpu_map0 --dev > > bpf-next: ~2.2Mpps > bpf-next + cpumap skb-list: ~3.15Mpps Nice! :) Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen