* [PATCH net v2] eth: fbnic: don't build the driver when skb has more than 21 frags
@ 2024-07-17 16:15 Jakub Kicinski
2024-07-18 13:25 ` Paolo Abeni
2024-07-19 14:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jakub Kicinski @ 2024-07-17 16:15 UTC (permalink / raw)
To: davem; +Cc: netdev, edumazet, pabeni, Jakub Kicinski, alexanderduyck,
kernel-team
Similarly to commit 0e03c643dc93 ("eth: fbnic: fix s390 build."),
the driver won't build if skb_shared_info has more than 25 frags
assuming a 64B cache line and 21 frags assuming a 128B cache line.
(512 - 48 - 64) / 16 = 25
(512 - 48 - 128) / 16 = 21
Fixes: 0cb4c0a13723 ("eth: fbnic: Implement Rx queue alloc/start/stop/free")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2:
- cover the 128B case as well
v1: https://lore.kernel.org/20240717133744.1239356-1-kuba@kernel.org
CC: alexanderduyck@fb.com
CC: kernel-team@meta.com
---
drivers/net/ethernet/meta/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/meta/Kconfig b/drivers/net/ethernet/meta/Kconfig
index a9f078212c78..86034ea4ba5b 100644
--- a/drivers/net/ethernet/meta/Kconfig
+++ b/drivers/net/ethernet/meta/Kconfig
@@ -21,6 +21,7 @@ config FBNIC
tristate "Meta Platforms Host Network Interface"
depends on X86_64 || COMPILE_TEST
depends on S390=n
+ depends on MAX_SKB_FRAGS < 22
depends on PCI_MSI
select PHYLINK
help
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net v2] eth: fbnic: don't build the driver when skb has more than 21 frags
2024-07-17 16:15 [PATCH net v2] eth: fbnic: don't build the driver when skb has more than 21 frags Jakub Kicinski
@ 2024-07-18 13:25 ` Paolo Abeni
2024-07-19 14:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Abeni @ 2024-07-18 13:25 UTC (permalink / raw)
To: Jakub Kicinski, davem; +Cc: netdev, edumazet, alexanderduyck, kernel-team
On 7/17/24 18:15, Jakub Kicinski wrote:
> Similarly to commit 0e03c643dc93 ("eth: fbnic: fix s390 build."),
> the driver won't build if skb_shared_info has more than 25 frags
> assuming a 64B cache line and 21 frags assuming a 128B cache line.
>
> (512 - 48 - 64) / 16 = 25
> (512 - 48 - 128) / 16 = 21
>
> Fixes: 0cb4c0a13723 ("eth: fbnic: Implement Rx queue alloc/start/stop/free")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Paolo Abeni <pabeni@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net v2] eth: fbnic: don't build the driver when skb has more than 21 frags
2024-07-17 16:15 [PATCH net v2] eth: fbnic: don't build the driver when skb has more than 21 frags Jakub Kicinski
2024-07-18 13:25 ` Paolo Abeni
@ 2024-07-19 14:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-19 14:40 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, edumazet, pabeni, alexanderduyck, kernel-team
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Wed, 17 Jul 2024 09:15:59 -0700 you wrote:
> Similarly to commit 0e03c643dc93 ("eth: fbnic: fix s390 build."),
> the driver won't build if skb_shared_info has more than 25 frags
> assuming a 64B cache line and 21 frags assuming a 128B cache line.
>
> (512 - 48 - 64) / 16 = 25
> (512 - 48 - 128) / 16 = 21
>
> [...]
Here is the summary with links:
- [net,v2] eth: fbnic: don't build the driver when skb has more than 21 frags
https://git.kernel.org/netdev/net/c/4359836129d9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-19 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 16:15 [PATCH net v2] eth: fbnic: don't build the driver when skb has more than 21 frags Jakub Kicinski
2024-07-18 13:25 ` Paolo Abeni
2024-07-19 14:40 ` patchwork-bot+netdevbpf
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).