On Fri, May 18, 2018 at 5:49 PM, Greg Rose <[email protected]> wrote:
> From: William Tu <[email protected]>
>
> Upstream commit:
>     commit 1baf5ebf8954d9bff8fa4e7dd6c416a0cebdb9e2
>     Author: William Tu <[email protected]>
>     Date:   Fri Apr 27 14:16:32 2018 -0700
>
>     erspan: auto detect truncated packets.
>
>     Currently the truncated bit is set only when the mirrored packet
>     is larger than mtu.  For certain cases, the packet might already
>     been truncated before sending to the erspan tunnel.  In this case,
>     the patch detect whether the IP header's total length is larger
>     than the actual skb->len.  If true, this indicated that the
>     mirrored packet is truncated and set the erspan truncate bit.
>
>     I tested the patch using bpf_skb_change_tail helper function to
>     shrink the packet size and send to erspan tunnel.
>
>     Reported-by: Xiaoyan Jin <[email protected]>
>     Signed-off-by: William Tu <[email protected]>
>     Signed-off-by: David S. Miller <[email protected]>
>
> Cc: William Tu <[email protected]>
> Signed-off-by: Greg Rose <[email protected]>
> ---
LGTM.
Acked-by: William Tu <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to