]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/sctp/constants.h
sctp: Rework the tsn map to use generic bitmap.
[net-next-2.6.git] / include / net / sctp / constants.h
index c32ddf0279c83513430c841f8a5f31e4c969f7d3..b05b0557211f00ee05cd5d27c3313c59072e1df3 100644 (file)
@@ -261,7 +261,9 @@ enum { SCTP_ARBITRARY_COOKIE_ECHO_LEN = 200 };
  * must be less than 65535 (2^16 - 1), or we will have overflow
  * problems creating SACK's.
  */
-#define SCTP_TSN_MAP_SIZE 2048
+#define SCTP_TSN_MAP_INITIAL BITS_PER_LONG
+#define SCTP_TSN_MAP_INCREMENT SCTP_TSN_MAP_INITIAL
+#define SCTP_TSN_MAP_SIZE 4096
 #define SCTP_TSN_MAX_GAP  65535
 
 /* We will not record more than this many duplicate TSNs between two