Home
last modified time | relevance | path

Searched hist:"384 a46ea7bdc77e1e070b728d427b763e364613c" (Results 1 – 1 of 1) sorted by relevance

/linux/net/ipv4/
H A Desp4_offload.cdiff 384a46ea7bdc77e1e070b728d427b763e364613c Thu Mar 26 10:02:29 CET 2020 Xin Long <lucien.xin@gmail.com> esp4: add gso_segment for esp4 beet mode

Similar to xfrm4_tunnel/transport_gso_segment(), _gso_segment()
is added to do gso_segment for esp4 beet mode. Before calling
inet_offloads[proto]->callbacks.gso_segment, it needs to do:

- Get the upper proto from ph header to get its gso_segment
when xo->proto is IPPROTO_BEETPH.

- Add SKB_GSO_TCPV4 to gso_type if x->sel.family == AF_INET6
and the proto == IPPROTO_TCP, so that the current tcp ipv4
packet can be segmented.

- Calculate a right value for skb->transport_header and move
skb->data to the transport header position.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>