-
Notifications
You must be signed in to change notification settings - Fork 135
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
Conversation
test/validation/api/pktio/lso.c
Outdated
if (is_test_pkt(pkt)) { | ||
pkt_out[num] = pkt; | ||
num++; | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in v2
test/validation/api/pktio/lso.c
Outdated
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed in v2
53c7238
to
bc16603
Compare
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]>
bc16603
to
c9f867f
Compare
Ignore non-test packets already at packet reception time to simplify the segment checking phase.