Skip to content

Commit 4359836

Browse files
kuba-mooPaolo Abeni
authored andcommitted
eth: fbnic: don't build the driver when skb has more than 21 frags
Similarly to commit 0e03c64 ("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: 0cb4c0a ("eth: fbnic: Implement Rx queue alloc/start/stop/free") Signed-off-by: Jakub Kicinski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent a1b7dbc commit 4359836

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/meta/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config FBNIC
2121
tristate "Meta Platforms Host Network Interface"
2222
depends on X86_64 || COMPILE_TEST
2323
depends on S390=n
24+
depends on MAX_SKB_FRAGS < 22
2425
depends on PCI_MSI
2526
select PHYLINK
2627
help

0 commit comments

Comments
 (0)