core: Segment tso packets based on physical device limitations

UDP GSO packets from network stack currently do not honor the
gso_max_size limits set in a driver. As a result, there needs
to be some enforcement done at the driver itself prior to the
transmit to hardware.

Instead of setting the gso_max_size on the rmnet devices, the
gso_max_size is instead set on the physical device. This
ensures that the network stack processing happens with the
maximum gso size possible for the TCP case.

CRs-Fixed: 2981039
Change-Id: I5280ea79f868e2b933f2604f8a33fbf33687f76c
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Šī revīzija ir iekļauta:
Subash Abhinov Kasiviswanathan
2021-06-30 00:03:14 -07:00
vecāks d9ef2d2404
revīzija eedd0b9c6d
2 mainīti faili ar 46 papildinājumiem un 0 dzēšanām

Parādīt failu

@@ -188,6 +188,9 @@ struct rmnet_priv_stats {
u64 ul_prio;
u64 tso_pkts;
u64 tso_arriv_errs;
u64 tso_segment_success;
u64 tso_segment_fail;
u64 tso_segment_skip;
u64 ll_tso_segs;
u64 ll_tso_errs;
};