From patchwork Sat Apr 2 00:21:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 12798869 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 27F86C433F5 for ; Sat, 2 Apr 2022 00:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353469AbiDBAXQ (ORCPT ); Fri, 1 Apr 2022 20:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235596AbiDBAXO (ORCPT ); Fri, 1 Apr 2022 20:23:14 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A671AC42A for ; Fri, 1 Apr 2022 17:21:23 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id t4so3561697pgc.1 for ; Fri, 01 Apr 2022 17:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=vDZbDqE4Ze6AaCp6rWdGSVAMmrIyAROqUO4yr/z2elY=; b=bmQyrRgNUafVvqhnwNnuwTU8TEk3iEln1FmvHVh9x17PwFkp+pBQQcJ203C2R8PPBS zVLDWQealgFQGZApFOFt1Y7+JFichUHYiQgnaEeuON44bwe/00MjyoxsfDIsCmr7Zrjj RVe0AF6zhqe23SmEtAcSEl202f7gw+DhgxDg8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vDZbDqE4Ze6AaCp6rWdGSVAMmrIyAROqUO4yr/z2elY=; b=eIU/nDn5H24qUIH0ZCeQUH3Gsi6MFsRwAUkJBfbwNX7TA6D+jhDjIlCfIPGZYidxxM FkARD2ClQ/aMmkhc35BrrlQllUJfb/oJYjI9c+pHXmcxgXLJUyDZDdin4M7SRs1D6Dgg GFlnl5OGHiTPtCHJfwipHrO4K8EXocU3fmkHprFKoEq54bO9V9MU3EkSzA0A8lcEztvA J7aIdmjjvel2v0pJB8UDQWsZCC8Q52QNmWm9MhyXKAEGBFbZuy/xE+h3pC6jgusOKf6P QOGDNZ+em08hd0WvwZfQrkRQW8/G8+ATUM0NygromC5YOQfFP0b3Sx7UjBYufJePQQdS VmhA== X-Gm-Message-State: AOAM531tPf7rEAwZHEXXRSdPJzOLxniueFWGpmVGba0/W0+PqH2cBPdT mRCd32hW3/L5YTFghMKjXbHATGGWRl0BHg== X-Google-Smtp-Source: ABdhPJwgesfyFxiUN5sDS0DRwA62l7ktkhJAymWJE71lyN8k4MzZtqRl1ZGQug6E4mHOSntlPpZWkA== X-Received: by 2002:a63:7905:0:b0:386:33e4:f0eb with SMTP id u5-20020a637905000000b0038633e4f0ebmr16835906pgc.439.1648858882546; Fri, 01 Apr 2022 17:21:22 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k10-20020a056a00168a00b004f7e2a550ccsm4295050pfc.78.2022.04.01.17.21.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2022 17:21:22 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com, bpf@vger.kernel.org Subject: [PATCH net 0/3] bnxt_en: XDP redirect fixes Date: Fri, 1 Apr 2022 20:21:09 -0400 Message-Id: <1648858872-14682-1-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This series includes 3 fixes related to the XDP redirect code path in the driver. The first one adds locking when the number of TX XDP rings is less than the number of CPUs. The second one adjusts the maximum MTU that can support XDP with enough tail room in the buffer. The 3rd one fixes a race condition between TX ring shutdown and the XDP redirect path. Andy Gospodarek (1): bnxt_en: reserve space inside receive page for skb_shared_info Pavan Chebbi (1): bnxt_en: Synchronize tx when xdp redirects happen on same ring Ray Jui (1): bnxt_en: Prevent XDP redirect from running when stopping TX queue drivers/net/ethernet/broadcom/bnxt/bnxt.c | 7 +++++++ drivers/net/ethernet/broadcom/bnxt/bnxt.h | 5 ++++- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 14 ++++++++++++-- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h | 2 ++ 4 files changed, 25 insertions(+), 3 deletions(-)