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 9265FA0577; Tue, 14 Apr 2020 10:20:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CBA271D176; Tue, 14 Apr 2020 10:15:10 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 8CD771D16B for ; Tue, 14 Apr 2020 10:15:09 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id ng8so4970257pjb.2 for ; Tue, 14 Apr 2020 01:15:09 -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=aVibzVYM+GHF9O2votMUezi7qiicT7z5qAG+UspNNYPiqb4qwhkd9zPR70EQ4kYLz8 X96fWfD4Wa05xZxCDbnRbCGn8BVRjVYfiQLOCDM+Ma5ppb2RF9TNddJengbPM/MDw16M vZ2iukFDoJmf18tvcKbvCc24+d7WdUH1GmIgM= 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=GTy9uI33D2t+rwQYXhnrfDZgYhttHglBLB91erXBNM7vjen+SPkVS8wRlbjHyM2sOx A0/ZFnzw+c6VH6eNoAlGoaSXsbNFWshjZoo7/puD6QsptkJwGX9r8TH4EoKBVU7rOPdX rT6w/CT9Y0nvI+nx4AVB34PWK41X60jteWFi6dF4WMGzfWwuP15PjEF1TsE6NkebnJ0M o8mi8f5cnLxmJEVmI4EseWKTGUsgGb5CayEewA1w3F5wvfjbBOxFlIQr4+FYwsOt8gdX 7qyPaxkcxqeaJ24Vk+L0omJbckfLct6yyHPmU9/tUINJIYIlKnExqRH6hFL+tNHjy8GB 6JOg== X-Gm-Message-State: AGi0PuYOWeU5zV94WQTHOv8j9xx/bvd59YboGVEbOX00OczXFD8sy7ev gJ4qeFHGyOyddVSkzHUPjkbh+Tcf0QRxrVDHE8xuZ9LyNMFXnSXfWOA/opLXRKPHkGp+QzewwQV mmfAuH4wEUqdUob8aIWsGkjjyNKXUsUDUPc0QYqvVMf5uA796u7/DjHWFTVhILGcCQ9hh X-Google-Smtp-Source: APiQypLXGobzDk+bByjPgaBxgMr0L2DkxD2ZPBKkpkfgQH2wQjg3GtB16riDgsoYInKMzRH72N69RA== X-Received: by 2002:a17:902:7487:: with SMTP id h7mr4516556pll.25.1586852108369; Tue, 14 Apr 2020 01:15:08 -0700 (PDT) Received: from S60.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id e196sm671176pfh.43.2020.04.14.01.15.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2020 01:15:07 -0700 (PDT) From: Venkat Duvvuru To: dev@dpdk.org Cc: Venkat Duvvuru Date: Tue, 14 Apr 2020 13:43:29 +0530 Message-Id: <1586852011-37536-33-git-send-email-venkatkumar.duvvuru@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1586852011-37536-1-git-send-email-venkatkumar.duvvuru@broadcom.com> References: <1586806811-21736-1-git-send-email-venkatkumar.duvvuru@broadcom.com> <1586852011-37536-1-git-send-email-venkatkumar.duvvuru@broadcom.com> Subject: [dpdk-dev] [PATCH v3 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