[<prev] [next>] [day] [month] [year] [list]
Message-ID: <sig.1999aa60cf.525C6D44.9040207@lbsd.net>
Date: Mon, 14 Oct 2013 22:16:36 +0000
From: Nigel Kukard <nkukard@...d.net>
To: netdev@...r.kernel.org
Subject: [PATCH] iproute2 - Fix tc stats when using -batch mode
Hi,
There are two global variables in tc/tc_class.c:
__u32 filter_qdisc;
__u32 filter_classid;
These are not re-initialized for each line received in -batch mode:
# tc -force -batch -
class show dev eth0 parent 1: classid 1:1
class show dev eth0 parent 1: classid 1:1
Error: duplicate "classid": "1:1" is the second value.
This patch fixes the issue by initializing the two globals when we
enter print_class().
Attached a patch which fixes this by initializing them when
print_class() is called.
-N
View attachment "batchfix.patch" of type "text/x-patch" (955 bytes)
Download attachment "smime.p7s" of type "application/pkcs7-signature" (4052 bytes)
Powered by blists - more mailing lists