mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
25 lines
821 B
Diff
25 lines
821 B
Diff
|
From 3aa80007715ecfd944e02029b59fec5c74c8598e Mon Sep 17 00:00:00 2001
|
||
|
From: Camelia Groza <camelia.groza@nxp.com>
|
||
|
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 <camelia.groza@nxp.com>
|
||
|
---
|
||
|
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;
|