gve: Make gve_rx_slot_page_info.page_offset an absolute offset
authorBailey Forrest <bcf@google.com>
Thu, 24 Jun 2021 18:06:20 +0000 (11:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Jun 2021 19:47:37 +0000 (12:47 -0700)
commit920fb45193551dc0e6cd8fa89e2487906f1867f6
tree344919102da48335d96d42312026aaff8b100731
parent35f9b2f43f8e0aee52421640912edc1ec309fd2e
gve: Make gve_rx_slot_page_info.page_offset an absolute offset

Using `page_offset` like a boolean means a page may only be split into
two sections. With page sizes larger than 4k, this can be very wasteful.
Future commits in this patchset use `struct gve_rx_slot_page_info` in a
way which supports a fixed buffer size and a variable page size.

Signed-off-by: Bailey Forrest <bcf@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_rx.c
drivers/net/ethernet/google/gve/gve_utils.c