summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-06-12 14:49:44 -0700
committerDavid S. Miller <davem@davemloft.net>2023-06-15 08:21:11 +0100
commit48eed027d310326052655c5ac14588855663087b (patch)
tree498f35c9dae873ea7cba0949b2dc350e3b8d189a /tools/perf/scripts/python/export-to-postgresql.py
parent70f7457ad6d655e65f1b93cbba2a519e4b11c946 (diff)
netpoll: allocate netdev tracker right away
Commit 5fa5ae605821 ("netpoll: add net device refcount tracker to struct netpoll") was part of one of the initial netdev tracker introduction patches. It added an explicit netdev_tracker_alloc() for netpoll, presumably because the flow of the function is somewhat odd. After most of the core networking stack was converted to use the tracking hold() variants, netpoll's call to old dev_hold() stands out a bit. np is allocated by the caller and ready to use, we can use netdev_hold() here, even tho np->ndev will only be set to ndev inside __netpoll_setup(). Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions