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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Can we get the following backported to the 4.9 branch?

commit 9383b33771e566fa547daa2d09c6e0f1aaa298c3
Author: Jakub Kicinski <jakub.kicinski@xxxxxxxxxxxxx>
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()")
    Signed-off-by: Jakub Kicinski <jakub.kicinski@xxxxxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>

Thank you!



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux