Skip to content

Conversation

@rjarry
Copy link
Collaborator

@rjarry rjarry commented Jul 11, 2025

Make the code more consistent.

Make the code more consistent.

Signed-off-by: Robin Jarry <[email protected]>
Comment on lines 259 to +262
if (sr == NULL || sr->segments_left == 0) {
// 4.16.3 USD
// this packet could be decapsulated and forwarded
if ((sr_d->flags & GR_SR_FL_FLAVOR_USD))
if (sr_d->flags & GR_SR_FL_FLAVOR_USD)

Choose a reason for hiding this comment

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

Single-statement if without braces is error-prone. Add braces to clearly scope the guarded code.

@christophefontaine christophefontaine merged commit d1a71dc into DPDK:main Jul 11, 2025
9 checks passed
@rjarry rjarry deleted the clang-format branch July 11, 2025 14:35
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.

2 participants