From: William Tu <u9012...@gmail.com>

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

This patch set BSO to 01 when truncate is true.

Signed-off-by: William Tu <u9012...@gmail.com>
---
 datapath/linux/compat/include/net/erspan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datapath/linux/compat/include/net/erspan.h 
b/datapath/linux/compat/include/net/erspan.h
index 813a9c5..8adc89f 100644
--- a/datapath/linux/compat/include/net/erspan.h
+++ b/datapath/linux/compat/include/net/erspan.h
@@ -268,7 +268,7 @@ static inline void erspan_build_header_v2(struct sk_buff 
*skb,
        } *qp;
        u16 vlan_tci = 0;
        u8 gra = 0; /* 100 usec */
-       u8 bso = 0; /* Bad/Short/Oversized */
+       u8 bso = truncate; /* Bad/Short/Oversized */
        u8 sgt = 0;
        u8 tos;
 
-- 
1.8.3.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to