From 983b5f47010dc9ced7072b1290016e8567e562e5 Mon Sep 17 00:00:00 2001 From: Flavio Leitner Date: Mon, 3 Feb 2020 11:22:22 -0300 Subject: [PATCH] netdev-linux-private: fix max length to be 16 bits 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 Signed-off-by: Ben Pfaff --- 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 143616ca841..be2d7b10bb1 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;