Skip to content

Commit

Permalink
gre: strip gre-tso offload flags
Browse files Browse the repository at this point in the history
if the gro enable, ipgre receive a gre-tso package. After pop
the gre-tunnel the encapsulation and GSO_ENCAP flags should be
striped. or the packet encap again and will be dropped in
ovs_iptunnel_handle_offloads

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Tested-by: Greg Rose <gvrose8192@gmail.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
  • Loading branch information
wenxu authored and blp committed Jan 26, 2018
1 parent 2640a83 commit c069da1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datapath/linux/compat/ip_gre.c
Expand Up @@ -140,6 +140,8 @@ static int ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi)
__be64 tun_id;
int err;

if (iptunnel_pull_offloads(skb))
return PACKET_REJECT;

skb_pop_mac_header(skb);
flags = tpi->flags & (TUNNEL_CSUM | TUNNEL_KEY);
Expand Down

0 comments on commit c069da1

Please sign in to comment.