Skip to content

Commit

Permalink
fix MAX_BUF_LEN
Browse files Browse the repository at this point in the history
  • Loading branch information
saubhik committed Mar 26, 2022
1 parent 7d385ad commit ba0cce8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/net/mbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <base/list.h>
#include <iokernel/queue.h>

#define MBUF_DEFAULT_LEN 2048
#define MBUF_DEFAULT_LEN 131072
#define MBUF_DEFAULT_HEADROOM 128


Expand Down
2 changes: 1 addition & 1 deletion iokernel/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "base/byteorder.h"

#define TX_PREFETCH_STRIDE 2
#define TX_MAX_SEGS (IOKERNEL_TX_BURST_SIZE * 50)
#define TX_MAX_SEGS (IOKERNEL_TX_BURST_SIZE * 128)
#define UDP_OFFSET 34
#define MTU_SIZE 1500

Expand Down
2 changes: 1 addition & 1 deletion runtime/net/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "../defs.h"

/* Maximum buffer for TX packets */
#define MAX_BUF_LEN 65536
#define MAX_BUF_LEN 131072

extern struct mempool net_tx_buf_mp;

Expand Down

0 comments on commit ba0cce8

Please sign in to comment.