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 984FBA053B; Fri, 17 Jul 2020 16:20:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E0131BFC5; Fri, 17 Jul 2020 16:20:12 +0200 (CEST) Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.211.62]) by dpdk.org (Postfix) with ESMTP id 455BC1BF60 for ; Fri, 17 Jul 2020 16:20:07 +0200 (CEST) Received: from dhcp-10-123-153-55.dhcp.broadcom.net (dhcp-10-123-153-55.dhcp.broadcom.net [10.123.153.55]) by relay.smtp.broadcom.com (Postfix) with ESMTP id 67C57299A8C; Fri, 17 Jul 2020 07:20:06 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 67C57299A8C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1594995606; bh=6qPim9/BFaxVxKpeRdJJA3wij3T9l7YRpOQ+EkY5pww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ELHiYnYyy80OcY1bu5/8PH6iODW5gn7I+78EaU5j8/1zZdF6wFYTEwrpvuq2lRSuq RJsb60EUpLEsXEL3gkjRFxRCbLKXkehqBwDvit5AWQZuUQ9bM+LhZgnrZknVN7wic8 EIyqCCmQqS/DpfRlBndanfk8F77tBINTHsvRQfQU= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Fri, 17 Jul 2020 19:44:40 +0530 Message-Id: <20200717141451.11705-4-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.10.1.613.g2cc2e70 In-Reply-To: <20200717141451.11705-1-somnath.kotur@broadcom.com> References: <20200717094935.9337-1-somnath.kotur@broadcom.com> <20200717141451.11705-1-somnath.kotur@broadcom.com> Subject: [dpdk-dev] [PATCH 03/14] net/bnxt: enable default flows in truflow mode 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" From: Kishore Padmanabha Removed the check to enable default flows only when VF representor are enabled. It should be enabled all the time in truflow mode. Signed-off-by: Kishore Padmanabha Reviewed-by: Michael Baucom Signed-off-by: Somnath Kotur --- drivers/net/bnxt/bnxt_ethdev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 318d6b3..0829493 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -1404,8 +1404,7 @@ static void bnxt_dev_close_op(struct rte_eth_dev *eth_dev) bnxt_cancel_fc_thread(bp); if (BNXT_TRUFLOW_EN(bp)) { - if (bp->rep_info != NULL) - bnxt_destroy_df_rules(bp); + bnxt_destroy_df_rules(bp); bnxt_ulp_deinit(bp); } @@ -1657,7 +1656,7 @@ static int bnxt_promiscuous_disable_op(struct rte_eth_dev *eth_dev) if (rc != 0) vnic->flags = old_flags; - if (BNXT_TRUFLOW_EN(bp) && bp->rep_info != NULL) + if (BNXT_TRUFLOW_EN(bp)) bnxt_create_df_rules(bp); return rc; -- 2.7.4