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 B0767A0577; Mon, 13 Apr 2020 21:48:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 585F41C217; Mon, 13 Apr 2020 21:43:06 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 4057D1C206 for ; Mon, 13 Apr 2020 21:43:04 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id t11so2974499pgg.2 for ; Mon, 13 Apr 2020 12:43:04 -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=XWPDsZdH3dcU+YfIqKwX6rkZvvWhtHa9mJm77rkX4KWAJl5tSbOd9xaWec8Aq+0aC/ U5opHTIVxr5dELfOCdteVvk7wZeZxI0VvfaVdVU6tm0zoF6uxDWPz6xTfXRfm4qYZ2jL 08zHKS8Ps+WmzXF3KzIgfBYIivqU5G3mTyWkg= 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=DM4dX8v7ps9G+AVA5wGEOkFje8O32b5KoSJlTm9wgxCrg2Q8W0BB9LW2phRrriw6kj TRjICo13FsOe2ljv/4tbSmM/Vg0JZKANsgOt1OuGlZHZiwh5x5fz3kGVYtFh/xf21xwN 4BgpgXRaqdpDiq+sIgUEQW5kDAXW3ZFXqZTM9u+FsLjpvypchRIOURWk6O1LmX2rd9+N XBBhuy6DDpwO5dgH7ue6z5Kz39lnQML/1xJvFzLSVbMj5SBzvjQMY81bSJFCWBAAtrm+ mCgijkn+MGwo+fVdht4YJApZVJVmOVMghaPjAyVOS/CzlZrFYkKTmQTpn2lg4R9zYl3c mOPw== X-Gm-Message-State: AGi0PubDxzGMdAOKdqV4ZZdFVkXUqx51S4wuN1d0qnLjFiBUQRxQqeKw geEVkdXR2qdSZJSsHZhnz86D5rCt8vjdjXkO68BGbY7TcpmzZ25fdafw7BWsnnBp4uMAoN3hbAa 44t9dZTwMpkccc3T63fm/tICODWJmeaBmLz0W2R72nd7MIM9+zrwCEOC/QQiF4e98zCo9 X-Google-Smtp-Source: APiQypJQtaPoSIHsA+mw7MOoxuaGmpb8VphWonmhQlZULxKrqXVhAwUZo7mJrrhOznhchVYvIXnKjQ== X-Received: by 2002:a65:460f:: with SMTP id v15mr12070061pgq.24.1586806983017; Mon, 13 Apr 2020 12:43:03 -0700 (PDT) Received: from S60.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 9sm1381663pfn.204.2020.04.13.12.43.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2020 12:43:02 -0700 (PDT) From: Venkat Duvvuru To: dev@dpdk.org Cc: Venkat Duvvuru Date: Tue, 14 Apr 2020 01:10:09 +0530 Message-Id: <1586806811-21736-33-git-send-email-venkatkumar.duvvuru@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1586806811-21736-1-git-send-email-venkatkumar.duvvuru@broadcom.com> References: <1584459511-5353-1-git-send-email-venkatkumar.duvvuru@broadcom.com> <1586806811-21736-1-git-send-email-venkatkumar.duvvuru@broadcom.com> Subject: [dpdk-dev] [PATCH v2 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