diff options
author | Tuomas Taipale <tuomas.taipale@nokia.com> | 2022-05-24 12:51:50 +0000 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-06-01 17:02:29 +0300 |
commit | e38f5278454b11b628e3357bc1606630e509eb6f (patch) | |
tree | e6814cf2f7dd92407928fc8d6c4c2ce590c9d140 /config | |
parent | f9e00911f199e8ab8c28dc17954a31058ec2ede6 (diff) |
linux-gen: socket_xdp: make RX and TX descriptor counts configurable
Make RX and TX descriptor counts configurable via linux-gen
configuration file. Current defaults are a good guess, but adjusting
them may (or may not) improve performance in some environments depending
on NIC configuration.
Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/odp-linux-generic.conf | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf index 9534d2a5d..9c5e85242 100644 --- a/config/odp-linux-generic.conf +++ b/config/odp-linux-generic.conf @@ -16,7 +16,7 @@ # Mandatory fields odp_implementation = "linux-generic" -config_file_version = "0.1.20" +config_file_version = "0.1.21" # System options system: { @@ -149,6 +149,17 @@ pktio_netmap: { } } +# XDP pktio options +pktio_xdp: { + # Number of RX and TX descriptors to be reserved for AF_XDP socket + # memory. Adjusting these may improve performance depending on NIC ring + # configuration. In zero-copy mode, packet pools used as pktio pools + # need to be large enough to accommodate RX and TX descriptors of every + # pktio queue. Values must be a power of two. + num_rx_desc = 1024 + num_tx_desc = 1024 +} + queue_basic: { # Maximum queue size. Value must be a power of two. max_queue_size = 8192 |