]> git.proxmox.com Git - ovs.git/commit
erspan: set bso bit based on mirrored packet's len
authorGreg Rose <gvrose8192@gmail.com>
Wed, 18 Jul 2018 16:22:13 +0000 (09:22 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 31 Jul 2018 20:07:40 +0000 (13:07 -0700)
commitbe69225a75b1fe03c32893b1b652745673d1ca28
tree9d5eb6f5510e97b25e0b0f3093cbe1b739729fc3
parent9d465a662fd10e0a0fb367b198df4c003b32cce3
erspan: set bso bit based on mirrored packet's len

Upstream commit:
    Before the patch, the erspan BSO bit (Bad/Short/Oversized) is not
    handled.  BSO has 4 possible values:
      00 --> Good frame with no error, or unknown integrity
      11 --> Payload is a Bad Frame with CRC or Alignment Error
      01 --> Payload is a Short Frame
      10 --> Payload is an Oversized Frame

    Based the short/oversized definitions in RFC1757, the patch sets
    the bso bit based on the mirrored packet's size.

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