kernel: bump 5.4 to 5.4.109
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0012-dpaa_eth-ceetm-adapt-to-the-new-gnet-stats-API.patch
1 From e7db22d2a5f57c41ec0a211b5d03b8768a173139 Mon Sep 17 00:00:00 2001
2 From: Camelia Groza <camelia.groza@nxp.com>
3 Date: Tue, 13 Jun 2017 16:26:00 +0300
4 Subject: [PATCH] dpaa_eth: ceetm: adapt to the new gnet stats API
5
6 Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
7 ---
8 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
12 +++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
13 @@ -1759,7 +1759,8 @@ static int ceetm_cls_dump_stats(struct Q
14 }
15 }
16
17 - if (gnet_stats_copy_basic(d, NULL, &tmp_bstats) < 0)
18 + if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch),
19 + d, NULL, &tmp_bstats) < 0)
20 return -1;
21
22 if (cq && qman_ceetm_cq_get_dequeue_statistics(cq, 0,