gve: Secure enough bytes in the first TX desc for all TCP pkts
authorShailend Chand <shailend@google.com>
Mon, 3 Apr 2023 17:28:09 +0000 (10:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Apr 2023 01:58:12 +0000 (18:58 -0700)
commit3ce9345580974863c060fa32971537996a7b2d57
tree0b0c4b391935fcd10f9cd873ae6b94c0ca4f510e
parenta1865f2e7d10dde00d35a2122b38d2e469ae67ed
gve: Secure enough bytes in the first TX desc for all TCP pkts

Non-GSO TCP packets whose SKBs' linear portion did not include the
entire TCP header were not populating the first Tx descriptor with
as many bytes as the vNIC expected. This change ensures that all
TCP packets populate the first descriptor with the correct number of
bytes.

Fixes: 893ce44df565 ("gve: Add basic driver framework for Compute Engine Virtual NIC")
Signed-off-by: Shailend Chand <shailend@google.com>
Link: https://lore.kernel.org/r/20230403172809.2939306-1-shailend@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_tx.c