From patchwork Wed Feb 21 21:20:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Khaparde X-Patchwork-Id: 136978 X-Patchwork-Delegate: ajit.khaparde@broadcom.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A9AE43B67; Wed, 21 Feb 2024 22:21:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D54A640689; Wed, 21 Feb 2024 22:21:05 +0100 (CET) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) by mails.dpdk.org (Postfix) with ESMTP id 795594064E for ; Wed, 21 Feb 2024 22:21:04 +0100 (CET) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-6083befe2a7so38462097b3.0 for ; Wed, 21 Feb 2024 13:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1708550463; x=1709155263; darn=dpdk.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ZkKXSg3jZRC7V4SJiM59h/iLOdCRLiy3ECR/CoAfc1k=; b=GErkbydsevHNJfZtYwFOhsUnEjDe5ChW/78nn+8l/chcH3c7qeKN1DuUXoJn4dCbYD /3Zm+X+zsUjUfW4MecG9t2L7ud8PgGOdua03QEkKWgkt7mXZc0RByavYJgbtjVb2hSNq SVDIoEWhddrjGba6UUdK/cjzewkLKG1Zx9wiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708550463; x=1709155263; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZkKXSg3jZRC7V4SJiM59h/iLOdCRLiy3ECR/CoAfc1k=; b=reM5HzJ7BkfUGqjUHPyE2Lp8Mv2ROrXIoAqRTwaq6nnB8V+xN7eddbuZhROhdBmv39 YnmVnsBOEFpLapnOO3b3U5h5NfxmqrclG16XpGZguYk3E+v1V/FQTIRtwXJ/ZkUa4KrG fG25crGPwixw5CHms5LTrjbG4yQpf1NSFEaD8I8H2g5C8LiaDV9StLBBphaDkBCNvqzL SJn6Mq+3lM00sjcVyTNRtzT+LXOENQR+hMjODe7wS2jvCkALr5sECs/vevQma1j7xfjZ YAGGsIWAp0XRvIWyU3YsK9cllxhlduQlQc6+UBJfBWNJUAxG5jY13X+jvvbiIl1+81tW 9zig== X-Gm-Message-State: AOJu0YzUzEQwIsh0yJeCUCaunCSdVWb9pkYR5uLuWrVt6pwYrIg06vnv r0q2HISTN1rdVDtXfUwLKiP8KoRDop+iN1Ed2p4UsTWVPUHdQI797IbnhQksT3ZcY93hOTI96Vb kuJKMPbI9R2+2vy60sPvpB/cHMqzVKk0/xma0B1tdjYRvPRV4SnuGrRvI+jcWLgcitzGs1Uy6j9 uOk3MZaeQX8TcEZEoDEtnqT0af5tVV X-Google-Smtp-Source: AGHT+IE9cr22bjrn1dOKG1kMVlzuc1D+Ie7RR3NMBBF75lnVyEYJzZo0UkPfyW9iEHpl1Ybbnr2ucw== X-Received: by 2002:a81:60c2:0:b0:607:87cd:9395 with SMTP id u185-20020a8160c2000000b0060787cd9395mr19525048ywb.17.1708550463267; Wed, 21 Feb 2024 13:21:03 -0800 (PST) Received: from C02GC2QQMD6T.wifi.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id 20-20020ac84e94000000b0042bff97d9a3sm4743467qtp.40.2024.02.21.13.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:21:02 -0800 (PST) From: Ajit Khaparde To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, Kalesh AP Subject: [PATCH 01/10] net/bnxt: extend long bd check for VXLAN GPE Date: Wed, 21 Feb 2024 13:20:36 -0800 Message-Id: <20240221212044.27209-2-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240221212044.27209-1-ajit.khaparde@broadcom.com> References: <20240221212044.27209-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Extend long Tx BD check for VXLAN GPE packets. This will allow the long BD to be selected for Tx with VXLAN GPE frames. Signed-off-by: Ajit Khaparde Reviewed-by: Kalesh AP --- drivers/net/bnxt/bnxt_txr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index 7fc44e989d..7cbb2104a0 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -116,7 +116,7 @@ bnxt_xmit_need_long_bd(struct rte_mbuf *tx_pkt, struct bnxt_tx_queue *txq) RTE_MBUF_F_TX_VLAN | RTE_MBUF_F_TX_OUTER_IP_CKSUM | RTE_MBUF_F_TX_TUNNEL_GRE | RTE_MBUF_F_TX_TUNNEL_VXLAN | RTE_MBUF_F_TX_TUNNEL_GENEVE | RTE_MBUF_F_TX_IEEE1588_TMST | - RTE_MBUF_F_TX_QINQ) || + RTE_MBUF_F_TX_QINQ | RTE_MBUF_F_TX_TUNNEL_VXLAN_GPE) || (BNXT_TRUFLOW_EN(txq->bp) && (txq->bp->tx_cfa_action || txq->vfr_tx_cfa_action))) return true;