[ovs-dev] [PATCH] netdev-linux-private: fix max length to be 16 bits

Flavio Leitner fbl at sysclose.org
Mon Feb 3 14:22:22 UTC 2020


The dp_packet length is limited to 16 bits, so document that
and fix the length value accordingly.

Fixes: 29cf9c1b3b9c ("userspace: Add TCP Segmentation Offload support")
Signed-off-by: Flavio Leitner <fbl at sysclose.org>
---
 lib/netdev-linux-private.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/netdev-linux-private.h b/lib/netdev-linux-private.h
index 143616ca8..be2d7b10b 100644
--- a/lib/netdev-linux-private.h
+++ b/lib/netdev-linux-private.h
@@ -38,7 +38,8 @@
 
 struct netdev;
 
-#define LINUX_RXQ_TSO_MAX_LEN 65536
+/* The maximum packet length is 16 bits */
+#define LINUX_RXQ_TSO_MAX_LEN 65535
 
 struct netdev_rxq_linux {
     struct netdev_rxq up;
-- 
2.24.1



More information about the dev mailing list