1. 26 3月, 2020 1 次提交
    • X
      esp4: add gso_segment for esp4 beet mode · 384a46ea
      Xin Long 提交于
      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: NXin Long <lucien.xin@gmail.com>
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      384a46ea
  2. 19 2月, 2020 2 次提交
  3. 17 2月, 2020 37 次提交