Skip to content

Commit

Permalink
netdev-linux-private: fix max length to be 16 bits
Browse files Browse the repository at this point in the history
The dp_packet length is limited to 16 bits, so document that
and fix the length value accordingly.

Fixes: 29cf9c1 ("userspace: Add TCP Segmentation Offload support")
Signed-off-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
fleitner authored and blp committed Feb 6, 2020
1 parent 64e0e43 commit 983b5f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/netdev-linux-private.h
Expand Up @@ -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;
Expand Down

0 comments on commit 983b5f4

Please sign in to comment.