From: David S. Miller Date: Thu, 15 Jun 2023 07:21:12 +0000 (+0100) Subject: Merge branch 'netdev-tracking' X-Git-Tag: v6.6.17~4555^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=473f5e13b38b9533bd3ae0758418581eabf69b50;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'netdev-tracking' Jakub Kicinski says: ==================== net: create device lookup API with reference tracking We still see dev_hold() / dev_put() calls without reference tracker getting added in new code. dev_get_by_name() / dev_get_by_index() seem to be one of the sources of those. Provide appropriate helpers. Allocating the tracker can obviously be done with an additional call to netdev_tracker_alloc(), but a single API feels cleaner. v2: - fix a dev_put() in ethtool v1: https://lore.kernel.org/all/20230609183207.1466075-1-kuba@kernel.org/ ==================== Signed-off-by: David S. Miller --- 473f5e13b38b9533bd3ae0758418581eabf69b50