• David Awogbemila's avatar
    gve: Rx Buffer Recycling · 02b0e0c1
    David Awogbemila authored
    This patch lets the driver reuse buffers that have been freed by the
    networking stack.
    
    In the raw addressing case, this allows the driver avoid allocating new
    buffers.
    In the qpl case, the driver can avoid copies.
    
    This patch separates the page refcount tracking mechanism
    into a function gve_rx_can_recycle_buffer which uses get_page - this will
    be changed in a future patch to entirely eliminate the use of get_page in
    tracking page refcounts.
    Signed-off-by: default avatarDavid Awogbemila <awogbemila@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    02b0e0c1
gve_rx.c 16.3 KB