aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZiyang Xuan <[email protected]>2022-08-27 15:20:10 +0800
committerMarc Kleine-Budde <[email protected]>2022-09-06 08:35:07 +0200
commitc28b3bffe49e713ce67f0e36de13b8f9f0776837 (patch)
tree983c2b86e1ef0819bdadded686fb5b7876e88999 /tools/perf/scripts/python
parent318d8235bcb8e9b6a42ce4a1190c23e577ed0833 (diff)
can: raw: process optimization in raw_init()
Now, register notifier after register proto successfully. It can create raw socket and set socket options once register proto successfully, so it is possible missing notifier event before register notifier successfully although this is a low probability scenario. Move notifier registration to the front of proto registration like done in j1939. In addition, register_netdevice_notifier() may fail, check its result is necessary. Signed-off-by: Ziyang Xuan <[email protected]> Link: https://lore.kernel.org/all/7af9401f0d2d9fed36c1667b5ac9b8df8f8b87ee.1661584485.git.william.xuanziyang@huawei.com Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions