summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2016-11-30 06:24:42 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-30 21:46:16 +0300
commit18502acd9a9663f25eb484025b7ab98f08d30d20 (patch)
tree19db7b0c31561a74e8dde9d87fdc28981d8b6ad6 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent9bee294f53ef588fdc909e53d7273d428e2887aa (diff)
downloadlinux-18502acd9a9663f25eb484025b7ab98f08d30d20.tar.xz
neigh: remove duplicate check for same neigh
Currently loop index 'idx' is used as the index in the neigh list of interest. It's increased only when the neigh is dumped. It's not the absolute index in the list. Because there is no info to record which neigh has already be scanned by previous loop. This will cause the filtered out neighs to be scanned mulitple times. This patch make idx as the absolute index in the list, it will increase no matter whether the neigh is filtered. This will prevent the above problem. And this is in line with other dump functions. v2: - take David Ahern's advice to do simple change Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions