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=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 D7BF0C33C99 for ; Tue, 7 Jan 2020 11:25:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC9AB2077B for ; Tue, 7 Jan 2020 11:25:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KNVv1lxY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727932AbgAGLZy (ORCPT ); Tue, 7 Jan 2020 06:25:54 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:26738 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727787AbgAGLZy (ORCPT ); Tue, 7 Jan 2020 06:25:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578396353; 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=ZbtnM4x0me9hDAVIpjenEUCeTRb6s5y4/BXN+VJl+vU=; b=KNVv1lxY5X5UAjKarl/AD6v7M5byUfLOjC/LhRBrT+SlLkMF5ac6/lWL/0TcDi93LnHW9Y YzwjLYk6q5pA4MziKdNjJfSnjn83Wg8gDV4xyDqiBOnXtz5HZ613JlxMYUamZ+ohE4tHcs 19XAtdWTNpgUPMuujM01Bx/sjZpa45s= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-363-hrQ7x5o0M46x9oBAldkg-w-1; Tue, 07 Jan 2020 06:25:49 -0500 X-MC-Unique: hrQ7x5o0M46x9oBAldkg-w-1 Received: by mail-wm1-f70.google.com with SMTP id s25so1856191wmj.3 for ; Tue, 07 Jan 2020 03:25:49 -0800 (PST) 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=ZbtnM4x0me9hDAVIpjenEUCeTRb6s5y4/BXN+VJl+vU=; b=n6x9eQNK3ayAK5Pq0Qwl+ZWwkshWiZ2C59uqAW+YzSYNAZ6lz7kBjRckRQSh9DRDYt ysxS5vNyCcJK5r02VJLNAq4fopjofqH8rtN/0Gk6YWFVuJ7xBImbMZ3fysotJmh2LuJE IPTd5GTU8/DiB7A9tAVEtoeEwhP09zivmZ0Aq0lxtVbMzarIdBJuaptSPZpjqprTy/Bp 4DiKRkgbb5KLtt4RJj2TJ5xui8fFXeKl4SIX0doBS0t8Y4zCkSRzbo+t3SmOs0+dY960 M2IhkRqfXTx70dDNuHoMogOdAUTeplZWKJP634H5dyRM6ioeg8CMIK1GVIYYR4mehGBa IBGQ== X-Gm-Message-State: APjAAAWlDSoGfiFDrpqtIp0Ie+TK2C843P739JSoah0M2GsPcyjYUYUq v42XZ/lb1o3KqETfqkqb13FM7R9heuZ7TWqmap0ImDxBbnWiN4DYi6swk8dEbmHEfBOHZwGASz3 6DKapo/wjcob1ngQe X-Received: by 2002:a7b:c4cc:: with SMTP id g12mr40701389wmk.68.1578396348834; Tue, 07 Jan 2020 03:25:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzTGCIRSmR3eU0JK3ZIYRYUz48eBF3BETcgpexoZLmwRMm8ICeBNHAjXoW+wOYUIvrTzKTrvA== X-Received: by 2002:a7b:c4cc:: with SMTP id g12mr40701345wmk.68.1578396348621; Tue, 07 Jan 2020 03:25:48 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id o4sm75692154wrw.97.2020.01.07.03.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 03:25:47 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 84496180960; Tue, 7 Jan 2020 12:25:47 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: Jesper Dangaard Brouer , Alexei Starovoitov , Network Development , Alexei Starovoitov , Daniel Borkmann , bpf , "David S. Miller" , Jakub Kicinski , John Fastabend , "Karlsson\, Magnus" , Jonathan Lemon Subject: Re: [PATCH bpf-next v2 0/8] Simplify xdp_do_redirect_map()/xdp_do_flush_map() and XDP maps In-Reply-To: References: <20191219061006.21980-1-bjorn.topel@gmail.com> <20191220084651.6dacb941@carbon> <20191220102615.45fe022d@carbon> <87mubn2st4.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 07 Jan 2020 12:25:47 +0100 Message-ID: <87zhezik3o.fsf@toke.dk> 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 Bj=C3=B6rn T=C3=B6pel writes: > On Fri, 20 Dec 2019 at 11:30, Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> >> Jesper Dangaard Brouer writes: >> > [...] >> > I have now went over the entire patchset, and everything look perfect, >> > I will go as far as saying it is brilliant. We previously had the >> > issue, that using different redirect maps in a BPF-prog would cause the >> > bulking effect to be reduced, as map_to_flush cause previous map to get >> > flushed. This is now solved :-) >> >> Another thing that occurred to me while thinking about this: Now that we >> have a single flush list, is there any reason we couldn't move the >> devmap xdp_bulk_queue into struct net_device? That way it could also be >> used for the non-map variant of bpf_redirect()? >> > > Indeed! (At least I don't see any blockers...) Cool, that's what I thought. Maybe I'll give that a shot, then, unless you beat me to it ;) -Toke