Page MenuHomeFreeBSD

gre: simplify RSS ifdefs
ClosedPublic

Authored by franco_opnsense.org on Aug 17 2021, 9:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 14, 10:00 PM
Unknown Object (File)
Wed, Oct 29, 5:40 PM
Unknown Object (File)
Sat, Oct 25, 7:29 AM
Unknown Object (File)
Sun, Oct 19, 5:03 AM
Unknown Object (File)
Sat, Oct 18, 3:00 PM
Unknown Object (File)
Oct 14 2025, 4:43 AM
Unknown Object (File)
Oct 13 2025, 4:15 PM
Unknown Object (File)
Oct 12 2025, 3:59 PM

Details

Summary

Use the early break to avoid else definitions. When RSS gains a
runtime option previous constructs would duplicate and convolute
the existing code.

While here init flowid and skip magic numbers and late default
assignment.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/net/if_gre.c
658

this one always wins

sys/net/if_gre.c
658

no, RSS inserts an early break statement above

This revision is now accepted and ready to land.Aug 18 2021, 7:24 AM