> -----Original Message----- > From: Zhang, AlvinX <[email protected]> > Sent: Wednesday, September 22, 2021 10:50 > To: Li, Xiaoyun <[email protected]>; Ananyev, Konstantin > <[email protected]> > Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected] > Subject: [PATCH v4 2/2] app/testpmd: fix txonly forwording > > When random number of Tx segments is enabled, because the actual number of > segments may be only one, the first segment of the Tx packets must > accommodate a complete being sending Eth/IP/UDP packet. > > Besides, if multiple flow is enabled, the forwarding will update the IP and > UDP > header, these headers shouldn't cross segments. > This also requires the first Tx segment can accommodate a complete > Eth/IP/UDP packet. > > In addition, if time stamp is enabled, the forwarding needs more Tx segment > space for time stamp information. > > This patch adds checks in beginning of forward engine to make sure all above > conditions are met. > > Bugzilla ID: 797 > Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") > Cc: [email protected] > > Signed-off-by: Alvin Zhang <[email protected]>
Acked-by: Xiaoyun Li <[email protected]>

