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 7E1F6C43603 for ; Fri, 20 Dec 2019 10:30:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54FB724679 for ; Fri, 20 Dec 2019 10:30:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a/q55E3h" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727388AbfLTKaL (ORCPT ); Fri, 20 Dec 2019 05:30:11 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:53902 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727233AbfLTKaK (ORCPT ); Fri, 20 Dec 2019 05:30:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576837809; 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: in-reply-to:in-reply-to:references:references; bh=bLxRxHGGdK9fwJ8AQcIOollF4v5MCCwpG8KKa6zir/c=; b=a/q55E3hu6GBGwKMetPHbOimEUJ0j7HNs63jGXyrLaukBdg0TWENJAHKzPkFQue9gWkB/m WULGpYP/f5JLrU8VIdrO+KsqVX/DONkmCOkjC4jnLYGxvp/o9U8SQ0Ci93qNC0YP2p35Ab XflGE1nCOt9zV/osY9ANxdhQz+joLsg= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-AqMpW4TTOTScjtaTH6eaPw-1; Fri, 20 Dec 2019 05:30:02 -0500 X-MC-Unique: AqMpW4TTOTScjtaTH6eaPw-1 Received: by mail-lf1-f69.google.com with SMTP id a11so1047584lff.12 for ; Fri, 20 Dec 2019 02:30:02 -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; bh=bLxRxHGGdK9fwJ8AQcIOollF4v5MCCwpG8KKa6zir/c=; b=dOgBu4/73dDqVtW4iqnXoSQoVHPzDi04CU4SEb7QKM1F1PwD0ADOzxgy99tm/8T0iA zkumboaBD/n2aj02nQpAYH6nPbTpUa2Q1CEOaKZ28VbZdyV5dKqsMufd+i9q3Oe+n0Ne mxq7rw8ac1jSLUYKnATe+BqxSHDRgVuRIMgStYsHFaF210gDsMccQagAO2BEPcVl8h8t O4RV7t85IPIAOVlsSl1MORZpv5Klz5qP9d4EpbixD1tYSQfz0sjk9DBVnnP1JDCSOD3a /0RHR03VS7GzCGoO/qEPcG75dq+eJER1wytVCAvAmeiW8JBTQ4yEVS9CstyB2OZFt8Vq qdJg== X-Gm-Message-State: APjAAAV5LxW9tsdBjbngZ2AGUwf2wPuOPMmMOBCA602xVBb/0iELcZV9 EWZjiHpgcf97VGOg821yCqLRJPYJJLN5kuNTDxMaQwtbBOWiGEzbBBkz7uyMwnouFQ+wuqOrSus zgHMqEAvEJ1CPVNNn X-Received: by 2002:a2e:96c4:: with SMTP id d4mr289063ljj.225.1576837800986; Fri, 20 Dec 2019 02:30:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzqkv9n7zq5sZW/toeG72RiasxsxgD85KG+ni8gYTocULVjC6qb+mO1RPZTO5BeAC5siMBpoA== X-Received: by 2002:a2e:96c4:: with SMTP id d4mr289043ljj.225.1576837800802; Fri, 20 Dec 2019 02:30:00 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id l28sm3762553lfk.21.2019.12.20.02.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 02:30:00 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 37485180969; Fri, 20 Dec 2019 11:29:59 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Jesper Dangaard Brouer , Alexei Starovoitov Cc: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Network Development , Alexei Starovoitov , Daniel Borkmann , bpf , "David S. Miller" , Jakub Kicinski , John Fastabend , "Karlsson\, Magnus" , Jonathan Lemon , brouer@redhat.com Subject: Re: [PATCH bpf-next v2 0/8] Simplify xdp_do_redirect_map()/xdp_do_flush_map() and XDP maps In-Reply-To: <20191220102615.45fe022d@carbon> References: <20191219061006.21980-1-bjorn.topel@gmail.com> <20191220084651.6dacb941@carbon> <20191220102615.45fe022d@carbon> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 20 Dec 2019 11:29:59 +0100 Message-ID: <87mubn2st4.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Jesper Dangaard Brouer writes: > On Fri, 20 Dec 2019 08:46:51 +0100 > Jesper Dangaard Brouer wrote: > >> On Thu, 19 Dec 2019 21:21:39 -0800 >> Alexei Starovoitov wrote: >> >> > > v1->v2 [1]: >> > > * Removed 'unused-variable' compiler warning (Jakub) >> > > >> > > [1] https://lore.kernel.org/bpf/20191218105400.2895-1-bjorn.topel@gmail.com/ >> > >> > My understanding that outstanding discussions are not objecting to the >> > core ideas of the patch set, hence applied. Thanks >> >> I had hoped to have time to review it in details today. But as I don't >> have any objecting to the core ideas, then I don't mind it getting >> applied. We can just fix things in followups. > > 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()? -Toke