diff --git a/client.config b/client.config index a29067fa..fe8ddbb8 100644 --- a/client.config +++ b/client.config @@ -3,5 +3,4 @@ host_addr 10.10.1.2 host_netmask 255.255.255.0 host_gateway 0.0.0.0 runtime_kthreads 4 -runtime_guaranteed_kthreads 4 -runtime_priority lc +runtime_priority be diff --git a/runtime/net/defs.h b/runtime/net/defs.h index f99d267e..e16fa220 100644 --- a/runtime/net/defs.h +++ b/runtime/net/defs.h @@ -13,7 +13,7 @@ #include "../defs.h" /* Maximum buffer for TX packets */ -#define MAX_BUF_LEN 64000 +#define MAX_BUF_LEN 65536 extern struct mempool net_tx_buf_mp; diff --git a/runtime/net/udp.c b/runtime/net/udp.c index 7f35eb8f..f8b54fd7 100644 --- a/runtime/net/udp.c +++ b/runtime/net/udp.c @@ -411,7 +411,6 @@ static void udp_tx_release_mbuf(struct mbuf *m) ssize_t udp_write_to(udpconn_t *c, const void *buf, size_t len, const struct netaddr *raddr) { - // log_info("udp_write_to() with len = %ld", len); struct netaddr addr; ssize_t ret; struct mbuf *m; @@ -421,8 +420,10 @@ ssize_t udp_write_to(udpconn_t *c, const void *buf, size_t len, sizeof(struct ip_hdr) + sizeof(struct udp_hdr); const uint8_t pkthdrsz = hdrsz - sizeof(struct tx_net_hdr); - if (len > MAX_BUF_LEN) + if (len > MAX_BUF_LEN) { + log_info("udp_write_to: len = %zu > MAX_BUF_LEN = %d", len, MAX_BUF_LEN); return -EMSGSIZE; + } if (!raddr) { if (c->e.match == TRANS_MATCH_3TUPLE) diff --git a/server.config b/server.config index 639ff887..b165c9c7 100644 --- a/server.config +++ b/server.config @@ -3,5 +3,4 @@ host_addr 10.10.1.1 host_netmask 255.255.255.0 host_gateway 0.0.0.0 runtime_kthreads 4 -runtime_guaranteed_kthreads 4 -runtime_priority lc +runtime_priority be