• Shannon Nelson's avatar
    ionic: implement support for rx sgl · 08f2e4b2
    Shannon Nelson authored
    Even out Rx performance across MTU sizes by changing from full
    skb allocations to page-based frag allocations.  The device
    supports a form of scatter-gather in the Rx path, so we can
    set up a number of pages for each descriptor, all of which are
    easier to alloc and pass around than the standard kzalloc'd
    buffer.  An skb is wrapped around the pages while processing
    the received packets, and pages are recycled as needed, or
    left alone if they weren't used in the Rx.
    Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    08f2e4b2
ionic_lif.c 59.1 KB