]> git.proxmox.com Git - mirror_ovs.git/commit
erspan: auto detect truncated ipv6 packets.
authorWilliam Tu <u9012063@gmail.com>
Sun, 13 May 2018 14:03:49 +0000 (07:03 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 22 May 2018 03:33:30 +0000 (20:33 -0700)
commitf1bc8ecd1d2b7de7967293e78b61f662d46d39f9
tree3e5709a30fe29646e91458b7ccbf5c21406fd6c3
parentbf6627087b996e27497f191a75c785e664dcccfc
erspan: auto detect truncated ipv6 packets.

Upstream commit:
    commit d5db21a3e6977dcb42cee3d16cd69901fa66510a
    Author: William Tu <u9012063@gmail.com>
    Date:   Fri May 11 05:49:47 2018 -0700

    erspan: auto detect truncated ipv6 packets.

    Currently the truncated bit is set only when 1) the mirrored packet
    is larger than mtu and 2) the ipv4 packet tot_len is larger than
    the actual skb->len.  This patch adds another case for detecting
    whether ipv6 packet is truncated or not, by checking the ipv6 header
    payload_len and the skb->len.

Reported-by: Xiaoyan Jin <xiaoyanj@vmware.com>
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: William Tu <u9012063@gmail.com>
Cc: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath/linux/compat/ip6_gre.c
datapath/linux/compat/ip_gre.c