]> www.infradead.org Git - users/hch/misc.git/commit
gve: update GQ RX to use buf_size
authorJoshua Washington <joshwash@google.com>
Fri, 21 Mar 2025 00:29:07 +0000 (00:29 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 20:51:14 +0000 (13:51 -0700)
commit57a070c2672b41242dc1f80e3ec943df6dc54933
treee5943d42968cbd636306447666afd6726a5b84f0
parent542a58f1b090cdcea951b7c9c48c3ba57d1e35b1
gve: update GQ RX to use buf_size

Commit ebdfae0d377b ("gve: adopt page pool for DQ RDA mode") introduced
a buf_size field to the gve_rx_slot_page_info struct, which can be used
in the datapath to take the place of the packet_buffer_size field, as it
will already be hot in the cache due to its extensive use. Using the
buf_size field in the datapath frees up the packet_buffer_size field in
the GQ-specific RX cacheline to be generalized for GQ and DQ (in the
next patch), as there is currently no common packet buffer size field
between the two queue formats.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Joshua Washington <joshwash@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20250321002910.1343422-4-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx.c