Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9F5BC05027 for ; Fri, 10 Feb 2023 18:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbjBJSKM (ORCPT ); Fri, 10 Feb 2023 13:10:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232768AbjBJSKH (ORCPT ); Fri, 10 Feb 2023 13:10:07 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F6866812C for ; Fri, 10 Feb 2023 10:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676052564; 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=bktzj9pUtDvfzFEYNHOpgZ9otzlEtCU+sjtmZV2ehpA=; b=fuQhaDQAAbuD57HfdENuF6qfKxB5tdi/XPRnrHpe26RJW70YkBqgYizGqN11ceDzYzHus8 HUEUh1u31t4kaR+rIfCYHMC9HV6SoccKWWG+poSxLEFsuHUNq96YbUwmDV/uRXi2KJgEx5 p3+bgsiSIKWImO/YO8Fa38Y9a6RV6zM= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-550-KgR82WFFPyOX5ErnvLT2OA-1; Fri, 10 Feb 2023 13:09:16 -0500 X-MC-Unique: KgR82WFFPyOX5ErnvLT2OA-1 Received: by mail-ed1-f71.google.com with SMTP id q6-20020a056402518600b004ab0e2d02e5so3998252edd.3 for ; Fri, 10 Feb 2023 10:09:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bktzj9pUtDvfzFEYNHOpgZ9otzlEtCU+sjtmZV2ehpA=; b=Gw6umqAB7l2K1Av7+ScxQ4lAvB+2wOzJjmKeyET14P6Q/2KOWL3B48oQ7v0dDPWngx hV+V8FEAZWLKJ1rhkk+9ZIpmInMCWVr2nCheUah9y7NASwE2HxJBbmzB1+U2uPD5DtUV yW59EQazrXHX5u3+0vhcj/JLWAhSbn/5De6whXS1vyqCejTgeBnbAH9wfhwTILMF+jsM /cFrSro8r4TFdctvSvR8OlaC7gl7w4UaJ1mQIF9DKPtiE3x0SSoqmdCrPsdfcZ2rar7K i24z7ESJU/G2g/U+Icltp3BklqE+YhOkXCaxE83ANtKaSqtWGko97t7OomdMd/y8vUOH 6qfA== X-Gm-Message-State: AO0yUKVfSDFQflstW5MsaQqRx2T/so2ArT15MlmNvOQ2iYmHPgpz+zWE 0d9PPKu6ie9+lPz3N/dOhHxOsnOrskNljkbpir/l3K4XOF3h06apEz5q2M0t5s4YR9EeSMycn48 2mqG/AzMLIZrYGKpXFdHX49w1 X-Received: by 2002:a17:906:1ec8:b0:88d:5fd1:3197 with SMTP id m8-20020a1709061ec800b0088d5fd13197mr15634097ejj.50.1676052554995; Fri, 10 Feb 2023 10:09:14 -0800 (PST) X-Google-Smtp-Source: AK7set9IcNHTm+2uFIQaJFbvxf0GV4vcbWMrGctJyoagu2VVIovhZ9nGDJhJoXQ7kr1gNOVf0B3XXw== X-Received: by 2002:a17:906:1ec8:b0:88d:5fd1:3197 with SMTP id m8-20020a1709061ec800b0088d5fd13197mr15634064ejj.50.1676052554472; Fri, 10 Feb 2023 10:09:14 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id kg12-20020a17090776ec00b008710789d85fsm2672300ejc.156.2023.02.10.10.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 10:09:14 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id CDA9C973E85; Fri, 10 Feb 2023 19:09:12 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Alexander Lobakin , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Alexander Lobakin , Maciej Fijalkowski , Magnus Karlsson , Martin KaFai Lau , Song Liu , Jesper Dangaard Brouer , Jakub Kicinski , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next 0/6] ice: post-mbuf fixes In-Reply-To: <20230210170618.1973430-1-alexandr.lobakin@intel.com> References: <20230210170618.1973430-1-alexandr.lobakin@intel.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 10 Feb 2023 19:09:12 +0100 Message-ID: <87fsbd75pz.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexander Lobakin writes: > The set grew from the poor performance of %BPF_F_TEST_XDP_LIVE_FRAMES > when the ice-backed device is a sender. Initially there were around > 3.3 Mpps / thread, while I have 5.5 on skb-based pktgen... > > After fixing 0005 (0004 is a prereq for it) first (strange thing nobody > noticed that earlier), I started catching random OOMs. This is how 0002 > (and partially 0001) appeared. > 0003 is a suggestion from Maciej to not waste time on refactoring dead > lines. 0006 is a "cherry on top" to get away with the final 6.7 Mpps. > 4.5 of 6 are fixes, but only the first three are tagged, since it then > starts being tricky. I may backport them manually later on. > > TL;DR for the series is that shortcuts are good, but only as long as > they don't make the driver miss important things. %XDP_TX is purely > driver-local, however .ndo_xdp_xmit() is not, and sometimes assumptions > can be unsafe there. > > With that series and also one core code patch[0], "live frames" and > xdp-trafficgen are now safe'n'fast on ice (probably more to come). Nice speedup! And cool to see that you're playing around with xdp-trafficgen :) -Toke