You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/layerscape/patches-5.4/701-net-0012-dpaa_eth-ceetm...

23 lines
815 B
Diff

From e7db22d2a5f57c41ec0a211b5d03b8768a173139 Mon Sep 17 00:00:00 2001
From: Camelia Groza <camelia.groza@nxp.com>
Date: Tue, 13 Jun 2017 16:26:00 +0300
Subject: [PATCH] dpaa_eth: ceetm: adapt to the new gnet stats API
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
---
drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
+++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
@@ -1759,7 +1759,8 @@ static int ceetm_cls_dump_stats(struct Q
}
}
- if (gnet_stats_copy_basic(d, NULL, &tmp_bstats) < 0)
+ if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch),
+ d, NULL, &tmp_bstats) < 0)
return -1;
if (cq && qman_ceetm_cq_get_dequeue_statistics(cq, 0,