• Jesse Brandeburg's avatar
    i40e/i40evf: fix TSO accounting · 980093eb
    Jesse Brandeburg authored
    The TSO logic in the transmit path had some assumptions that
    have been broken now that the kernel can send as much as 32kB
    in a single skb->frag[.] entry, even on a system with 4kB pages.
    
    This fixes the assumptions and allows the kernel to operate
    as efficiently as possible with both SENDFILE and SEND.
    
    In addition, the hardware limit of data contained in a descriptor is
    changed to the next power of two below where it currently is in
    order to align to a power of two value, preventing a single byte
    of data in a descriptor.
    
    Change-ID: I6af1f0b87c1458e10644dbd47541591075a52651
    Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    980093eb
i40e_txrx.c 44.7 KB