From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D3468A0563; Wed, 15 Apr 2020 10:26:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DBAC1D5FE; Wed, 15 Apr 2020 10:20:51 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 06C231D52B for ; Wed, 15 Apr 2020 10:20:48 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id d17so1179174pgo.0 for ; Wed, 15 Apr 2020 01:20:47 -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:in-reply-to:references; bh=EEt61szSCZacsQnXBf3oUWINBXUWs+NmA4Jbc7YDpbs=; b=hfnHxCvQZVZrN0GrKliy/RMlsKegm3cdF28+JsrmS5K05mtihlcNtOx1/GZyWgscPU 5sSqpdyHSMJY7nTveo4qlfpFja0qSsBQXLrb4yg5q2DBfim3TmML9k1ULP85nlpieVkB CYxk7CRDGGFrG8JgVBrfmLbQ1DK32Ymn4OLoM= 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:in-reply-to :references; bh=EEt61szSCZacsQnXBf3oUWINBXUWs+NmA4Jbc7YDpbs=; b=ecb0a4SedFk7rmRfSHvb/4nshKgtoC2vXGZW1RRnvPDJCj5S28Cd/zzTEqju/xqjG+ 5q99mZYqfGQ3EioCy0SHHOuKVXRlpOSC5IVsdXuUioJxFV/n6ehZclgOzg+fgHDrPUnu MGm7HzS9w4JgrbD/i/ejcN3AZaDadtZCTJBoFa05MFdgCEZHONYtWt7jo5QJz8tkbu5B lgz620J2yKq4drY2OoJ1gr9IcwlAcg9F7EZTpxqfwnaEaq8wKKzy5ePBB60KfE3PYglh Xr3v9dx5Rt2QRut6SSwrNOK8IAsxGtuiD/vxE0qgkWh1zkXL7j8WcI0MWB+nBbfUjzcE 2vPw== X-Gm-Message-State: AGi0PubQN/1pGpnvhnqZ+a80NtTaGhb+71JTnmvGCZbBioUr0989OZWF AKIefppbVhXesRSx5mZcSxmkGgRSgzh7Afi4ILgBmUeVb4wbJmrIaVo1vNS8xqEqDkjyTzrP8Ka kpqb0GA8U/kyB/cyTDgw76mbcCEdkkDKVsyvQ+ikWbm1EkCw+n+Ypk0XmQ/mbmKSj+Wet X-Google-Smtp-Source: APiQypK0jG+Vy2+3hqKNvI2GYi9JDfrjF279Q320DDrjk8RPiMCsLvwbOo73wXV8g+vJlqCyAEEDQA== X-Received: by 2002:a63:ee4e:: with SMTP id n14mr868514pgk.442.1586938846871; Wed, 15 Apr 2020 01:20:46 -0700 (PDT) Received: from S60.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id fy21sm3819019pjb.25.2020.04.15.01.20.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2020 01:20:46 -0700 (PDT) From: Venkat Duvvuru To: dev@dpdk.org Cc: Venkat Duvvuru Date: Wed, 15 Apr 2020 13:49:09 +0530 Message-Id: <1586938751-32808-33-git-send-email-venkatkumar.duvvuru@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1586938751-32808-1-git-send-email-venkatkumar.duvvuru@broadcom.com> References: <1586852011-37536-1-git-send-email-venkatkumar.duvvuru@broadcom.com> <1586938751-32808-1-git-send-email-venkatkumar.duvvuru@broadcom.com> Subject: [dpdk-dev] [PATCH v4 32/34] net/bnxt: disable vector mode when host based TRUFLOW is enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" If bp->truflow is not set then don't enable vector mode. Signed-off-by: Venkat Duvvuru Reviewed-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 783e6a4..5d5b8e0 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -788,7 +788,8 @@ bnxt_receive_function(struct rte_eth_dev *eth_dev) DEV_RX_OFFLOAD_TCP_CKSUM | DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | DEV_RX_OFFLOAD_RSS_HASH | - DEV_RX_OFFLOAD_VLAN_FILTER))) { + DEV_RX_OFFLOAD_VLAN_FILTER)) && + !bp->truflow) { PMD_DRV_LOG(INFO, "Using vector mode receive for port %d\n", eth_dev->data->port_id); bp->flags |= BNXT_FLAG_RX_VECTOR_PKT_MODE; -- 2.7.4