Skip to contentSkip to conversation

nfp: don't tell FW about the reserved buffer space

DISCUSSION Jakub Kicinski 2 participants 4 messages Jun 29, 2018 – Jul 2, 2018 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi!

Can we get the following backported to the 4.9 branch?

commit 9383b33771e566fa547daa2d09c6e0f1aaa298c3

Author: Jakub Kicinski <[email protected]>
Date:   Thu Mar 2 15:26:20 2017 -0800

nfp: don't tell FW about the reserved buffer space

Since commit c0f031bc8866 ("nfp_net: use alloc_frag() and build_skb()") we are allocating buffers which have to hold both the data and skb to be created in place by build_skb().

FW should only be told about the buffer space it can DMA to, that is without the build_skb() headroom and tailroom. Note: firmware applications should validate the buffers against both MTU and free list buffer size so oversized packets would not pass through the NIC anyway.

Fixes c0f031bc8866 ("nfp: use alloc_frag() and build_skb()")

Thank you!

maintainer
#1 lore raw
Quoted 7 lines · Jakub Kicinski

Hi!

Can we get the following backported to the 4.9 branch?

commit 9383b33771e566fa547daa2d09c6e0f1aaa298c3

Author: Jakub Kicinski <[email protected]>
Date:   Thu Mar 2 15:26:20 2017 -0800

Now applied, thanks.

greg k-h

maintainer
#2 lore raw
Quoted 10 lines · Greg KH
Quoted 7 lines · Jakub Kicinski

Hi!

Can we get the following backported to the 4.9 branch?

commit 9383b33771e566fa547daa2d09c6e0f1aaa298c3

Author: Jakub Kicinski <[email protected]>
Date:   Thu Mar 2 15:26:20 2017 -0800

Now applied, thanks.

And it breaks the build :(

Please provide a working patch if you want it in the stable release. And always test these before asking. Having patches break a build is very annoying...

thanks,

greg k-h

#3 lore raw
Quoted 10 lines · Greg KH
Quoted 9 lines · Greg KH
Quoted 7 lines · Jakub Kicinski

Hi!

Can we get the following backported to the 4.9 branch?

commit 9383b33771e566fa547daa2d09c6e0f1aaa298c3

Author: Jakub Kicinski <[email protected]>
Date:   Thu Mar 2 15:26:20 2017 -0800
Quoted 7 lines
Quoted 1 line

Now applied, thanks.

And it breaks the build :(

Please provide a working patch if you want it in the stable release. And always test these before asking. Having patches break a build is very annoying...

Sorry about this Greg! :( I was looking at 4.10 tree for some reason. And 4.10 is dead, obviously.