lwip: rework the tcp ooseq handling.

It now accounts for the number of rx pool buffers used and the
available memory when deciding the number of ooseq buffers to retain.

Enable the TCP Selective ACK support which appears to help a lot on
lossy wifi when using the OOSEQ option.
This commit is contained in:
Our Air Quality 2017-09-03 20:10:22 +10:00
parent 1bfa6c4364
commit f5817aef01
4 changed files with 135 additions and 13 deletions

View file

@ -45,6 +45,12 @@ struct esf_buf;
void sdk_system_station_got_ip_set(struct ip4_addr *, struct ip4_addr *, struct ip4_addr *);
void sdk_system_pp_recycle_rx_pkt(struct esf_buf *);
struct pbuf;
void pp_recycle_rx_pbuf(struct pbuf *);
size_t ooseq_max_bytes(size_t n);
size_t ooseq_max_pbufs(size_t n);
/* Define generic types used in lwIP */
typedef uint8_t u8_t;
typedef int8_t s8_t;