linux-stable/drivers/net/ethernet/netronome
Jakub Kicinski 9383b33771 nfp: don't tell FW about the reserved buffer space
Since commit c0f031bc88 ("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: c0f031bc88 ("nfp: use alloc_frag() and build_skb()")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-03 09:46:53 -08:00
..
nfp nfp: don't tell FW about the reserved buffer space 2017-03-03 09:46:53 -08:00
Kconfig nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00