Re: [PATCH net-next v9 07/13] ptp: Move from simple ida to xarray

From
Köry Maincent <kory.maincent@bootlin.com>
Date
2024-03-05 09:03:09
Also in
linux-doc, lkml
Reply to
Jakub Kicinski, 2024-03-05
On Mon, 4 Mar 2024 18:47:37 -0800
Jakub Kicinski [off-list ref] wrote:
On Mon, 26 Feb 2024 14:39:58 +0100 Kory Maincent wrote:
quoted
+static DEFINE_XARRAY_FLAGS(ptp_clocks_map, XA_FLAGS_LOCK_IRQ |
XA_FLAGS_ALLOC);  
Why _IRQ? anything on the fastpath hopefully has a pointer to the clock
already, I'd hope. And we often reserve ID 0 as invalid.
To keep the same flag as IDA_INIT_FLAGS, I am not expert in xarray so I just
keep it without questioning it. Do you think I should remove it?

ID 0 was valid for phc. IMHO makes it invalid is not a good idea, it
will change the phc id value for current board on the field.
BTW could be a standalone patch, Xarray conversion from IDA is an
improvement in itself.
Indeed. Do you prefer this patch to be standalone?

Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Thread (33 messages) 33 messages, 4 authors, last reply 2024-03-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help