net: create device lookup API with reference tracking
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 9 repliesIn review 1 of 2 applied
- v12 patches 5 repliesSuperseded
Changes in v2 from the cover letter
- fix a dev_put() in ethtool
v1: https://lore.kernel.org/all/[email protected]/
Patches in v2 1 of 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: create device lookup API with reference trackinginclude/ net/ net/ +1 more | +66 | 4 replies | |
| 2/2 | netpoll: allocate netdev tracker right awaynet/ | +2 | 0 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet | David Ahern |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v2 0/2] 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/[email protected]/
Jakub Kicinski (2):
net: create device lookup API with reference tracking
netpoll: allocate netdev tracker right away
include/linux/netdevice.h | 4 +++ net/core/dev.c | 75 ++++++++++++++++++++++++++------------- net/core/netpoll.c | 5 ++- net/ethtool/netlink.c | 10 +++--- net/ipv6/route.c | 12 +++---- 5 files changed, 68 insertions(+), 38 deletions(-)
Signature · 1 line
2.40.1