static int rpl_gre_handle_offloads(struct sk_buff *skb, bool gre_csum) { int type = gre_csum ? SKB_GSO_GRE_CSUM : SKB_GSO_GRE; gso_fix_segment_t fix_segment; if (gre_csum) fix_segment = gre_csum_fix; else fix_segment = gre_nop_fix; return ovs_iptunnel_handle_offloads(skb, type, fix_segment); }
static struct sk_buff *handle_offloads(struct sk_buff *skb) { return ovs_iptunnel_handle_offloads(skb, false, vxlan_gso); }