aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/google/gve/gve_tx.c
diff options
context:
space:
mode:
authorDavid Awogbemila <awogbemila@google.com>2020-12-07 14:45:25 -0800
committerDavid S. Miller <davem@davemloft.net>2020-12-08 16:06:28 -0800
commit02b0e0c18ba75227e0482600950c6abe71ace30f (patch)
tree2e6efbc3e56f16737577634b52ea2ccddb6566a5 /drivers/net/ethernet/google/gve/gve_tx.c
parentgve: Add support for raw addressing to the rx path (diff)
downloadlinux-dev-02b0e0c18ba75227e0482600950c6abe71ace30f.tar.xz
linux-dev-02b0e0c18ba75227e0482600950c6abe71ace30f.zip
gve: Rx Buffer Recycling
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: David Awogbemila <awogbemila@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/google/gve/gve_tx.c')
0 files changed, 0 insertions, 0 deletions