dma/idxd: configure maximum batch size to high value
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 16 Feb 2022 16:06:08 +0000 (16:06 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Feb 2022 15:45:16 +0000 (16:45 +0100)
When configuring an Intel DSA instance using the utility script
dpdk_idxd_cfg.py, explicitly set the max supported batch size value to a
high value, to ensure large bursts are supported if so desired. The
default in the linux kernel is now just 32 [1], which may not be
sufficient for all DPDK apps.

[1] https://lore.kernel.org/r/163528473483.3926048.7950067926287180976.stgit@djiang5-desk3.ch.intel.com

Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Kevin Laatz <kevin.laatz@intel.com>
drivers/dma/idxd/dpdk_idxd_cfg.py

index 34537cb..3f5d5ee 100755 (executable)
@@ -89,6 +89,7 @@ def configure_dsa(dsa_id, queues, prefix):
                              "mode": "dedicated",
                              "name": f"{prefix}_wq{dsa_id}.{q}",
                              "priority": 1,
+                             "max_batch_size": 1024,
                              "size": int(max_work_queues_size / nb_queues)})
 
     # enable device and then queues