aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJiri Pirko <[email protected]>2022-09-29 09:28:58 +0200
committerJakub Kicinski <[email protected]>2022-09-30 18:17:16 -0700
commitae3bbc04d4bfef5d0332cd4edda3ac8f714cea23 (patch)
treee150b9e6fd1d7233eb6c3a05bf53b89cae4d40ea /scripts/generate_rust_analyzer.py
parent081adcfe930e4b01a55eaa329b2e453a442f35a9 (diff)
net: devlink: add port_init/fini() helpers to allow pre-register/post-unregister functions
Lifetime of some of the devlink objects, like regions, is currently forced to be different for devlink instance and devlink port instance (per-port regions). The reason is that for devlink ports, the internal structures initialization happens only after devlink_port_register() is called. To resolve this inconsistency, introduce new set of helpers to allow driver to initialize devlink pointer and region list before devlink_register() is called. That allows port regions to be created before devlink port registration and destroyed after devlink port unregistration. Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions