[ovs-dev] [PATCH V3 37/40] erspan: set bso when truncated bit is set.
Greg Rose
gvrose8192 at gmail.com
Sat May 19 00:49:45 UTC 2018
From: William Tu <u9012063 at 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 <u9012063 at 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
More information about the dev
mailing list