DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, Long Wu <long.wu@corigine.com>,
	chaoyong.he@corigine.com, stable@dpdk.org,
	Peng Zhang <peng.zhang@corigine.com>
Subject: [PATCH 4/4] net/nfp: fix stop cpp service problem
Date: Wed, 24 Jan 2024 17:25:41 +0800	[thread overview]
Message-ID: <20240124092541.2011874-5-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20240124092541.2011874-1-chaoyong.he@corigine.com>

From: Long Wu <long.wu@corigine.com>

Stop cpp service if all representors are closed and cpp service is running.

Fixes: bab0e6f48b6d ("net/nfp: fix infinite loop")
Cc: chaoyong.he@corigine.com
Cc: stable@dpdk.org

Signed-off-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
---
 drivers/net/nfp/flower/nfp_flower_representor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/nfp/flower/nfp_flower_representor.c b/drivers/net/nfp/flower/nfp_flower_representor.c
index bf67dc3ba2..2e8eb13e4e 100644
--- a/drivers/net/nfp/flower/nfp_flower_representor.c
+++ b/drivers/net/nfp/flower/nfp_flower_representor.c
@@ -400,6 +400,9 @@ nfp_flower_repr_dev_close(struct rte_eth_dev *dev)
 	/* Stop flower service first */
 	nfp_flower_service_stop(app_fw_flower);
 
+	/* Disable cpp service if need */
+	nfp_service_disable(&pf_dev->cpp_service_info);
+
 	/* Now it is safe to free all PF resources */
 	nfp_uninit_app_fw_flower(pf_dev);
 	nfp_pf_uninit(pf_dev);
-- 
2.39.1


  parent reply	other threads:[~2024-01-24  9:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24  9:25 [PATCH 0/4] enhance NFP service framework Chaoyong He
2024-01-24  9:25 ` [PATCH 1/4] net/nfp: add synchronize module Chaoyong He
2024-01-24  9:25 ` [PATCH 2/4] net/nfp: create new service code related files Chaoyong He
2024-01-24  9:25 ` [PATCH 3/4] net/nfp: flower driver uses one service core Chaoyong He
2024-01-24  9:25 ` Chaoyong He [this message]
2024-01-30 12:07   ` [PATCH 4/4] net/nfp: fix stop cpp service problem Ferruh Yigit
2024-01-30 12:17     ` Kevin Traynor
2024-02-02  3:04 ` [PATCH v2 0/3] enhance NFP service framework Chaoyong He
2024-02-02  3:04   ` [PATCH v2 1/3] net/nfp: add synchronize module Chaoyong He
2024-02-02  3:04   ` [PATCH v2 2/3] net/nfp: create new service code related files Chaoyong He
2024-02-02  3:04   ` [PATCH v2 3/3] net/nfp: flower driver uses one service core Chaoyong He
2024-02-06 15:17   ` [PATCH v2 0/3] enhance NFP service framework Ferruh Yigit
2024-02-08  9:52     ` Chaoyong He
2024-02-08 13:58   ` Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240124092541.2011874-5-chaoyong.he@corigine.com \
    --to=chaoyong.he@corigine.com \
    --cc=dev@dpdk.org \
    --cc=long.wu@corigine.com \
    --cc=oss-drivers@corigine.com \
    --cc=peng.zhang@corigine.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).