From patchwork Fri Apr 16 21:22:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 423142 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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 844D2C433B4 for ; Fri, 16 Apr 2021 21:23:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2A0D8613CD for ; Fri, 16 Apr 2021 21:23:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344291AbhDPVX0 (ORCPT ); Fri, 16 Apr 2021 17:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344280AbhDPVXY (ORCPT ); Fri, 16 Apr 2021 17:23:24 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CB7C061756 for ; Fri, 16 Apr 2021 14:22:57 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id c17so19175211pfn.6 for ; Fri, 16 Apr 2021 14:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CODT/l9wKNWBpQaDvOl66Tu0sYopza7reL9vKUiw/uY=; b=Q223E8YiG2Uing5+vQRc/SIQG9F41JyBDQfS3DsJo8NG/TIoHP8YuSaS4cVI1nfrdh 3GmJDA8kD5yQ1aDYbQvpkbXAen8t2yM9S732rgRFwR3p8VWNkz+AEz4FZVc4WqY+y88x upOprON0paEsrUT/Z5Qz+uFFuPSbS/P98+fFBQfsorkHLNh4hDFQv33UfUTf6x4MONqv 4yhsTUHXADkUimLny5lS2GBuCO9Rj6/63dBwdSbz/l7srIUXqHRSziwJJ64UvSKJFfWP 4WMmShRJqN4gAUY1K79HithDio9yIPtv33kdkinfNidanBB2r22zgddhJgBJgSqNkeo/ 6Xrw== 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:date:message-id:mime-version :content-transfer-encoding; bh=CODT/l9wKNWBpQaDvOl66Tu0sYopza7reL9vKUiw/uY=; b=BVzJmfiNOcMYM6zBPUIftJdE0eCQJz0zAM4uYKJ88mE3p3yLjLZYxS/gYCyQGvEqD2 fYkSJyTRrDkzUNskxoPngr/62qSiuzxAJJDwAfY1DrCAZBjur6fRg/YvbWcfNPeEHL7t 7QEmzLSejN8Fny61kbQgle8hfRPgBLbCzMv551vvmQygltPUNGnoPyXVFGhXCpS97e4q 6J2ZZBAjXlrioLvmrBN08C+w6nXTn8CLBMXqgihbYNxOVvwpmo0tn7QQqbrEfT/xqSa8 yWLwszRca0SrrpXsr25XTUMnRvs38lEXFAOLDjZ3raA3y8Z5OIf3/j5N/uOX2N4BMVl0 mSeg== X-Gm-Message-State: AOAM53083aLzYxV1HOSpKw+n1rqGiCsA0xR3AtpfnZWFewXYRlOckYuW uJs9exUM3TMJzgWpCjM9TBFziCG5Se6vLw== X-Google-Smtp-Source: ABdhPJxAbz7Gj4UNBK7IYRg0P1x4yx3Qix8hI/lcyaaCsLlcJF//j4QkV+w2HG2Rm6wq8BHMaERbLQ== X-Received: by 2002:a62:68c4:0:b029:226:5dc5:4082 with SMTP id d187-20020a6268c40000b02902265dc54082mr9205516pfc.48.1618608177399; Fri, 16 Apr 2021 14:22:57 -0700 (PDT) Received: from localhost.localdomain (5-12-16-165.residential.rdsnet.ro. [5.12.16.165]) by smtp.gmail.com with ESMTPSA id t23sm6069132pju.15.2021.04.16.14.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 14:22:56 -0700 (PDT) From: Vladimir Oltean To: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org, Po Liu Cc: Claudiu Manoil , Alex Marginean , Yangbo Lu , =?utf-8?q?Toke_H=C3=B8iland-J?= =?utf-8?b?w7hyZ2Vuc2Vu?= , Vladimir Oltean Subject: [PATCH net-next 00/10] Fixups for XDP on NXP ENETC Date: Sat, 17 Apr 2021 00:22:15 +0300 Message-Id: <20210416212225.3576792-1-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Vladimir Oltean After some more XDP testing on the NXP LS1028A, this is a set of 10 bug fixes, simplifications and tweaks, ranging from addressing Toke's feedback (the network stack can run concurrently with XDP on the same TX rings) to fixing some OOM conditions seen under TX congestion. Vladimir Oltean (10): net: enetc: remove redundant clearing of skb/xdp_frame pointer in TX conf path net: enetc: rename the buffer reuse helpers net: enetc: recycle buffers for frames with RX errors net: enetc: stop XDP NAPI processing when build_skb() fails net: enetc: remove unneeded xdp_do_flush_map() net: enetc: increase TX ring size net: enetc: use dedicated TX rings for XDP net: enetc: handle the invalid XDP action the same way as XDP_DROP net: enetc: fix buffer leaks with XDP_TX enqueue rejections net: enetc: apply the MDIO workaround for XDP_REDIRECT too drivers/net/ethernet/freescale/enetc/enetc.c | 140 ++++++++++++------- drivers/net/ethernet/freescale/enetc/enetc.h | 3 +- 2 files changed, 88 insertions(+), 55 deletions(-)