Skip to content
Commit dce0ce2b authored by Xulin Sun's avatar Xulin Sun Committed by Bruce Ashfield
Browse files

dpaa2-eth: replace struct "gnet_stats_basic_packed" with "gnet_stats_basic_sync"



commit 304640d0(net: sched: Merge Qdisc::bstats and Qdisc::cpu_bstats data types)
has dropped the struct "gnet_stats_basic_packed", replaced with "gnet_stats_basic_sync".
Here adapt to this changes.

And using the API u64_stats_add() to avoid below building error:
dpaa2-eth-ceetm.c:380:49: error: invalid operands to binary + (have 'u64_stats_t' and 'u64_stats_t')
|   380 |                         sch->bstats.bytes       += qdisc->bstats.bytes;
|       |                                                 ^~ ~~~~~~~~~~~~~~~~~~~
|       |                                                                 |
|       |                                                                 u64_stats_t

Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent dda41796
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment