netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
@ 2024-02-02  6:45 Bo Liu
  2024-02-02  7:55 ` Miquel Raynal
  2024-02-26 20:48 ` Stefan Schmidt
  0 siblings, 2 replies; 8+ messages in thread
From: Bo Liu @ 2024-02-02  6:45 UTC (permalink / raw)
  To: alex.aring, stefan, miquel.raynal, davem, edumazet, kuba, pabeni
  Cc: linux-wpan, netdev, linux-kernel, Bo Liu

The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/net/ieee802154/at86rf230.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 164c7f605af5..6212164ffb36 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -316,7 +316,7 @@ static const struct regmap_config at86rf230_regmap_spi_config = {
 	.val_bits = 8,
 	.write_flag_mask = CMD_REG | CMD_WRITE,
 	.read_flag_mask = CMD_REG,
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 	.max_register = AT86RF2XX_NUMREGS,
 	.writeable_reg = at86rf230_reg_writeable,
 	.readable_reg = at86rf230_reg_readable,
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
@ 2024-02-02  8:08 Bo Liu (刘波)-浪潮信息
  2024-02-04 14:35 ` Simon Horman
  0 siblings, 1 reply; 8+ messages in thread
From: Bo Liu (刘波)-浪潮信息 @ 2024-02-02  8:08 UTC (permalink / raw)
  To: miquel.raynal@bootlin.com
  Cc: alex.aring@gmail.com, stefan@datenfreihafen.org,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, linux-wpan@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]


>Hi Bo,
>
>liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
>
>> The maple tree register cache is based on a much more modern data
>> structure than the rbtree cache and makes optimisation choices which
>> are probably more appropriate for modern systems than those made by the
>rbtree cache.
>
>What are the real intended benefits? Shall we expect any drawbacks?
>
Hi
	The maple tree register cache has now got to the point where is is
	roughly feature compatible with the rbtree cache. It's based on a much more modern data
	structure than the rbtree cache

>> Signed-off-by: Bo Liu <liubo03@inspur.com>
>
>Thanks,
>Miquèl

Thanks

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3777 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-26 20:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-02  6:45 [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache Bo Liu
2024-02-02  7:55 ` Miquel Raynal
2024-02-05 19:42   ` Alexander Aring
2024-02-06  9:25     ` Miquel Raynal
2024-02-20 10:04     ` Miquel Raynal
2024-02-26 20:48 ` Stefan Schmidt
  -- strict thread matches above, loose matches on Subject: below --
2024-02-02  8:08 Bo Liu (刘波)-浪潮信息
2024-02-04 14:35 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).