gso: remove dependency on tcp proto implementation 60/29560/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 20 Oct 2020 20:45:51 +0000 (13:45 -0700)
committerDamjan Marion <dmarion@me.com>
Wed, 21 Oct 2020 11:04:26 +0000 (11:04 +0000)
Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I3af84e968c38df0452746729dcb722d48fa438fb

src/vnet/gso/gro_func.h
src/vnet/tcp/tcp_packet.h
src/vnet/tcp/tcp_types.h

index 96a03ce..b821a03 100644 (file)
@@ -22,7 +22,7 @@
 #include <vnet/ip/ip4.h>
 #include <vnet/ip/ip6.h>
 #include <vnet/udp/udp_packet.h>
-#include <vnet/tcp/tcp.h>
+#include <vnet/tcp/tcp_packet.h>
 #include <vnet/vnet.h>
 
 static_always_inline u8
index fcc55ff..9ccd8e0 100644 (file)
@@ -172,6 +172,7 @@ typedef struct
 #define TCP_MAX_WND_SCALE               14     /* See RFC 1323 */
 #define TCP_OPTS_ALIGN                  4
 #define TCP_OPTS_MAX_SACK_BLOCKS        3
+#define TCP_MAX_GSO_SZ                         65536
 
 /* Modulo arithmetic for TCP sequence numbers */
 #define seq_lt(_s1, _s2) ((i32)((_s1)-(_s2)) < 0)
index c476431..d1dc717 100644 (file)
@@ -32,7 +32,6 @@
 #define TCP_FIB_RECHECK_PERIOD 1 * THZ /**< Recheck every 1s */
 #define TCP_MAX_OPTION_SPACE 40
 #define TCP_CC_DATA_SZ 24
-#define TCP_MAX_GSO_SZ 65536
 #define TCP_RXT_MAX_BURST 10
 
 #define TCP_DUPACK_THRESHOLD   3