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

From
Jakub Kicinski <kuba@kernel.org>
Date
2024-03-05 02:47:39
Also in
linux-doc, lkml
Reply to
Kory Maincent, 2024-02-26
On Mon, 26 Feb 2024 14:39:58 +0100 Kory Maincent wrote:
+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.

IOW DEFINE_XARRAY_ALLOC1() ?

BTW could be a standalone patch, Xarray conversion from IDA is an
improvement in itself.
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