From 3aa80007715ecfd944e02029b59fec5c74c8598e Mon Sep 17 00:00:00 2001 From: Camelia Groza Date: Wed, 30 May 2018 15:04:37 +0300 Subject: [PATCH] sdk_dpaa: ceetm: reset the wbfs groups and priorities on teardown Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c @@ -491,6 +491,10 @@ static void ceetm_destroy(struct Qdisc * break; case CEETM_WBFS: + /* Reset the WBFS groups and priorities */ + if (priv->wbfs.ch) + qman_ceetm_channel_set_group(priv->wbfs.ch, 1, 0, 0); + if (priv->wbfs.parent) priv->wbfs.parent->prio.child = NULL; break;