[PATCH 3/3] app/testpmd: fix meter mark handle update

Alexander Kozyrev akozyrev at nvidia.com
Tue Jul 18 15:27:50 CEST 2023


> On Tuesday, July 11, 2023 12:15 PM
> Stephen Hemminger <stephen at networkplumber.org> wrote:
> On Tue, 11 Jul 2023 18:20:44 +0300
> Alexander Kozyrev <akozyrev at nvidia.com> wrote:
> 
> > +	case RTE_FLOW_ACTION_TYPE_METER_MARK:
> > +		rte_memcpy(&mtr_update.meter_mark, action->conf,
> > +			sizeof(struct rte_flow_action_meter_mark));
> 
> Why use rte_memcpy? memcpy of fixed size is faster.
> Also, more static checkers know what memcpy is.

Ok, not a problem, switching to memcpy.


More information about the dev mailing list