49c0e2e630af150664033ef536177a6529adbd42
[openwrt/staging/ynezz.git] /
1 From ceecb6c2de60f19c674d4e59dde2523db7a9099b Mon Sep 17 00:00:00 2001
2 From: Camelia Groza <camelia.groza@nxp.com>
3 Date: Mon, 19 Mar 2018 18:39:59 +0200
4 Subject: [PATCH] sdk_dpaa: ceetm: stop the netdev queues when switching ceetm
5 on
6
7 Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
8 ---
9 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12 --- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
13 +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
14 @@ -1100,7 +1100,9 @@ static int ceetm_init(struct Qdisc *sch,
15
16 switch (priv->type) {
17 case CEETM_ROOT:
18 + netif_tx_stop_all_queues(dev);
19 ret = ceetm_init_root(sch, priv, qopt, extack);
20 + netif_tx_wake_all_queues(dev);
21 break;
22 case CEETM_PRIO:
23 ret = ceetm_init_prio(sch, priv, qopt);