session: pre-alloc required dma batches 76/38476/2
authorMarvin Liu <yong.liu@intel.com>
Tue, 14 Mar 2023 15:56:31 +0000 (23:56 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 14 Mar 2023 16:40:41 +0000 (16:40 +0000)
commit48d2e15e3d5afa34ab75112a949dacc2759d472c
tree5702147fe271861e6e123b09fa8d637747c75257
parent738aba7b5150b1c78953a5cd59791fed2ab539ab
session: pre-alloc required dma batches

Specify the number of max_batches when applying for dma config.
Skip this round when no batch available from vlib_dma_batch_new.

Type: improvement

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Change-Id: Ic6e0acf81ba4fc3ed33aea6ac6990ef841021c59
src/vnet/session/session.c
src/vnet/session/session_node.c