Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v3] validation: pktio: lso: filter non-test packets away earlier #2163

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

JannePeltonen
Copy link
Collaborator

Ignore non-test packets already at packet reception time to simplify the segment checking phase.

@odpbuild odpbuild changed the title validation: pktio: lso: filter non-test packets away earlier [PATCH v1] validation: pktio: lso: filter non-test packets away earlier Dec 12, 2024
Comment on lines 341 to 346
if (is_test_pkt(pkt)) {
pkt_out[num] = pkt;
num++;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Free the non-test packets.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in v2

static void update_ipv4_hdr(uint8_t *hdr, uint32_t hdr_len, uint32_t orig_pkt_len,
odp_packet_t pkt, uint16_t seg_num, uint16_t seg_offset)
static void update_ipv4_hdr(uint8_t *hdr, uint32_t hdr_len, odp_packet_t pkt,
uint16_t seg_num, uint16_t seg_offset, uint16_t num_segs)
{
(void)seg_num;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seg_num is used, so this could be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed in v2

@odpbuild odpbuild changed the title [PATCH v1] validation: pktio: lso: filter non-test packets away earlier [PATCH v2] validation: pktio: lso: filter non-test packets away earlier Dec 12, 2024
Ignore non-test packets already at packet reception time to
simplify the segment checking phase.

Signed-off-by: Janne Peltonen <[email protected]>
Reviewed-by: Jere Leppänen <[email protected]>
@odpbuild odpbuild changed the title [PATCH v2] validation: pktio: lso: filter non-test packets away earlier [PATCH v3] validation: pktio: lso: filter non-test packets away earlier Dec 13, 2024
@MatiasElo MatiasElo merged commit d2a127e into OpenDataPlane:master Dec 13, 2024
162 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants