]> git.proxmox.com Git - ovs.git/commitdiff
netdev-linux-private: fix max length to be 16 bits
authorFlavio Leitner <fbl@sysclose.org>
Mon, 3 Feb 2020 14:22:22 +0000 (11:22 -0300)
committerBen Pfaff <blp@ovn.org>
Thu, 6 Feb 2020 19:36:27 +0000 (11:36 -0800)
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@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-linux-private.h

index 143616ca841c245d54cd35e235d0ace9727518f9..be2d7b10bb13e23d12840e1f574f36670ea4639c 100644 (file)
@@ -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;