Re: [0/2] net/smc: Adjustments for two function implementations
From: Markus Elfring
Date: Tue Jan 02 2024 - 06:50:44 EST
> But it is not very attractive to me since the calls occur on low-frequency paths
> or unlikely condition, resulting in limited performance loss and the current
> kfree() usage is fine and common.
The prioritisation of development activities influences progress in related areas.
> So what is the benfit?
* Source code clarity
* Nicer run time characteristics
See also:
https://wiki.sei.cmu.edu/confluence/display/c/MEM12-C.+Consider+using+a+goto+chain+when+leaving+a+function+on+error+when+using+and+releasing+resources
> I noticed that some other discussions are on-going. It seems like you are trying
> to change other similiar places.
I would appreciate if improvements can be achieved also for similarly affected
software components.
Regards,
Markus