• Shannon Nelson's avatar
    ionic: implement Rx page reuse · 4b0a7539
    Shannon Nelson authored
    Rework the Rx buffer allocations to use pages twice when using
    normal MTU in order to cut down on buffer allocation and mapping
    overhead.
    
    Instead of tracking individual pages, in which we may have
    wasted half the space when using standard 1500 MTU, we track
    buffers which use half pages, so we can use the second half
    of the page rather than allocate and map a new page once the
    first buffer has been used.
    Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4b0a7539
ionic_dev.h 11 KB