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 8FE5AA0527; Sat, 18 Jul 2020 09:26:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E1F1E1BFC4; Sat, 18 Jul 2020 09:25:36 +0200 (CEST) Received: from mail-wr1-f98.google.com (mail-wr1-f98.google.com [209.85.221.98]) by dpdk.org (Postfix) with ESMTP id A83791BFB3 for ; Sat, 18 Jul 2020 09:25:33 +0200 (CEST) Received: by mail-wr1-f98.google.com with SMTP id b6so13248877wrs.11 for ; Sat, 18 Jul 2020 00:25:33 -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 :mime-version:content-transfer-encoding; bh=8JeY4UKaDfLawB2XohdDhhRbMCbvG3j/mttiSnS1p88=; b=NCsPzO27kfVjChAdZjgypv2MqyspqV2Wrh6sLsb2OVPSiK2/eTtYCHf3k/WmS7QH8R UjqnZisNi/hrOP+jXmSVWYFsx0YXCYQ+ILW3KOLoEUSBjCcMyCtwO3zYA5iF6h+sqnTm 38T88DfyzdVvJeUO3n17Vb/HY+XkIOCAQmoE4= 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:mime-version:content-transfer-encoding; bh=8JeY4UKaDfLawB2XohdDhhRbMCbvG3j/mttiSnS1p88=; b=Pxhm9xkxB5M0ADGtN+K1/lqPFvP32p1FJjV1tc240OogWr1balOI9Spaf712q1/KTJ O4v/Jx55/D39+/8fJJL0xFKKa2n3ZcCPThxVXFKqV+QhAr1s4KpbVwtOgDAJ9hyxYxhs 8GwgvBR13vUl+jO1R8vlShsHulO0DCn2kEGqygLG/ffM7hy0EJYsxXy8nqb5DuvFWkPN 0KshcHDnLUJYE/IJb2nUhVoj5ptlDRlJDcg/UKkf7OpdB0glCG6AV3f14MgH8FRE1Ga1 Tx1nG0estzbeclCH8gm2ryG/6Tj+BYYFRcpUpfYjRYm8zHDqS8XqHzW/rYxhJBn6pfn/ vzTw== X-Gm-Message-State: AOAM53396HU5NQAZu5pTEcrHwO3IDacB5MEkAlQIEol9XA/FMde0Jd+8 TtHJXisgF80AQhzUiKEUBLtque9d8RB/voYo/f+TYkS0iv5pTaOURDq15515TukWOYOK126OBQ7 Cb5pJbDWrES6bfkMElruw3dxANrm8hLmWAkxUzGIIPtepb1ZK/E+O9EuX8rALW0FHLIWRXI+KTG FJmA== X-Google-Smtp-Source: ABdhPJyv2OFxgz0iF+HLVn4qF7J0Zb1sHz1VTL5VmfgK+pAj9cc3qs8BR68ZUhJoV+4T3F36ysr0pQjX18lg X-Received: by 2002:a5d:664a:: with SMTP id f10mr13558766wrw.300.1595057132828; Sat, 18 Jul 2020 00:25:32 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp-relay.gmail.com with ESMTPS id g14sm34554wrb.16.2020.07.18.00.25.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 00:25:32 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Ajit Khaparde To: dev@dpdk.org Cc: Kishore Padmanabha , Somnath Kotur , Michael Baucom Date: Sat, 18 Jul 2020 00:25:04 -0700 Message-Id: <20200718072515.62969-4-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20200718072515.62969-1-ajit.khaparde@broadcom.com> References: <20200717141451.11705-1-somnath.kotur@broadcom.com> <20200718072515.62969-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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 Signed-off-by: Somnath Kotur Reviewed-by: Michael Baucom --- 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 318d6b33a..0829493ea 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.21.1 (Apple Git-122.3)