From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 50C31A0C45; Mon, 22 Nov 2021 05:59:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CDCDC4014E; Mon, 22 Nov 2021 05:59:50 +0100 (CET) Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.166.231]) by mails.dpdk.org (Postfix) with ESMTP id C890C4003C for ; Mon, 22 Nov 2021 05:59:48 +0100 (CET) Received: from dhcp-10-123-153-55.dhcp.broadcom.net (dhcp-10-123-153-55.dhcp.broadcom.net [10.123.153.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by relay.smtp-ext.broadcom.com (Postfix) with ESMTPS id 731ECE9; Sun, 21 Nov 2021 20:59:46 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 731ECE9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1637557187; bh=SADq/xpbVOc0cqT22IH1zEzUv797G988ozlhKUlmwJ8=; h=From:To:Cc:Subject:Date:From; b=GSYKlQtjTFXoM7k9685nD6mxo0v0KosTWUyhuPETA8RO16/bUbjw7TTUwOqNzBEBU J4wGj6MZy/loKHnryq6TQa9QSlK9B96ADQ4+XZ0NTK66SShivYEUSYN7N9K3tcmgam 1Kxr9ByWqTYDZCo99M5k1q6OXq7cNGj+Bqyh5n8w= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Somnath Kotur , Kalesh AP Subject: [PATCH] net/bnxt: restore fast-path API pointers post recovery Date: Mon, 22 Nov 2021 10:23:14 +0530 Message-Id: <20211122045314.8860-1-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.28.0.450.g3a238e5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In bnxt_dev_recover(), restore the newly introduced fast-path API pointers (struct rte_eth_fp_ops)->rx_pkt_burst to the real burst routines instead of the dummy ones, once error recovery has successfully completed. Fixes: c87d435a4d79 ("ethdev: copy fast-path API into separate structure") Signed-off-by: Somnath Kotur Reviewed-by: Kalesh AP --- drivers/net/bnxt/bnxt_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index c1bdf9a921..f79f33ab4e 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -4345,6 +4345,12 @@ static void bnxt_dev_recover(void *arg) goto err_start; } + rte_eth_fp_ops[bp->eth_dev->data->port_id].rx_pkt_burst = + bp->eth_dev->rx_pkt_burst; + rte_eth_fp_ops[bp->eth_dev->data->port_id].tx_pkt_burst = + bp->eth_dev->tx_pkt_burst; + rte_mb(); + rc = bnxt_restore_filters(bp); if (rc) goto err_start; -- 2.28.0.497.g54e85e7