[dpdk-stable] [PATCH v4 1/2] app/testpmd: update forward engine beginning

Li, Xiaoyun xiaoyun.li at intel.com
Wed Sep 22 07:59:17 CEST 2021


> -----Original Message-----
> From: Zhang, AlvinX <alvinx.zhang at intel.com>
> Sent: Wednesday, September 22, 2021 10:50
> To: Li, Xiaoyun <xiaoyun.li at intel.com>; Ananyev, Konstantin
> <konstantin.ananyev at intel.com>
> Cc: dev at dpdk.org; Zhang, AlvinX <alvinx.zhang at intel.com>; stable at dpdk.org
> Subject: [PATCH v4 1/2] app/testpmd: update forward engine beginning
> 
> For each forward engine, there may be some special conditions must be met
> before the forwarding runs.
> 
> Adding checks for these conditions in configuring is not suitable, because one
> condition may rely on multiple configurations, and the conditions required by
> each forward engine is not general.
> 
> The best solution is each forward engine has a callback to check whether these
> conditions are met, and then testpmd can call the callback to determine whether
> the forwarding can be started.
> 
> There was a void callback 'port_fwd_begin' in forward engine, it did some
> initialization for forwarding, this patch updates its return value then we can add
> some checks in it to confirm whether the forwarding can be started. In addition,
> this patch calls the callback before the forwarding stats is reset and then
> launches the forwarding engine.
> 
> Bugzilla ID: 797
> Cc: stable at dpdk.org

Not sure if you should add the same fixline as patch 2
> 
> Signed-off-by: Alvin Zhang <alvinx.zhang at intel.com>

Except that, Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>


More information about the stable mailing list