We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e28fad commit 49a90adCopy full SHA for 49a90ad
lib/route/tc.c
@@ -843,6 +843,12 @@ int rtnl_tc_clone(struct nl_object *dstobj, struct nl_object *srcobj)
843
dst->tc_subdata = NULL;
844
dst->tc_link = NULL;
845
dst->tc_ops = NULL;
846
+ memset(dst->tc_stats, 0, sizeof(src->tc_stats));
847
+
848
+ if (src->ce_mask & TCA_ATTR_STATS) {
849
+ memcpy(dst->tc_stats, src->tc_stats, sizeof(src->tc_stats));
850
+ dst->ce_mask |= TCA_ATTR_STATS;
851
+ }
852
853
if (src->tc_link) {
854
nl_object_get(OBJ_CAST(src->tc_link));
0 commit comments