udp: Record gso_segs when supporting UDP segmentation offload
We need to record the number of segments that will be generated when this frame is segmented. The expectation is that if gso_size is set then gso_segs is set as well. Without this some drivers such as ixgbe get confused if they attempt to offload this as they record 0 segments for the entire packet instead of the correct value. Reviewed-by:Eric Dumazet <edumazet@google.com> Acked-by:
Willem de Bruijn <willemb@google.com> Signed-off-by:
Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
parent
53a7bdfb
Please register or sign in to comment