aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-trace.h
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2025-07-16 22:08:10 +0000
committerJakub Kicinski <[email protected]>2025-07-17 23:25:20 +0000
commite804bd83c1fd7e1f03899c948812ebc207ac5a7e (patch)
tree3d43ac3ccdac4011710a5fcea11a92e7e2b756a9 /drivers/usb/cdns3/cdns3-trace.h
parentneighbour: Move neigh_find_table() to neigh_get(). (diff)
downloadkernel-e804bd83c1fd7e1f03899c948812ebc207ac5a7e.tar.gz
kernel-e804bd83c1fd7e1f03899c948812ebc207ac5a7e.zip
neighbour: Split pneigh_lookup().
pneigh_lookup() has ASSERT_RTNL() in the middle of the function, which is confusing. When called with the last argument, creat, 0, pneigh_lookup() literally looks up a proxy neighbour entry. This is the case of the reader path as the fast path and RTM_GETNEIGH. pneigh_lookup(), however, creates a pneigh_entry when called with creat 1 from RTM_NEWNEIGH and SIOCSARP, which require RTNL. Let's split pneigh_lookup() into two functions. We will convert all the reader paths to RCU, and read_lock_bh(&tbl->lock) in the new pneigh_lookup() will be dropped. Signed-off-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions