HomeFreeBSD

gre: simplify RSS ifdefs

Description

gre: simplify RSS ifdefs

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.

Reviewed by: melifaro, kbowling
Obtained from: OPNsense
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31584

(cherry picked from commit bb250fae9e9e278b681cf3a71ced718700ecf74c)

Details

Provenance
franco_opnsense.orgAuthored on Aug 18 2021, 5:05 PM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Aug 26 2021, 12:01 AM
Reviewer
melifaro
Differential Revision
D31584: gre: simplify RSS ifdefs
Parents
rG477308acc5f0: iflib: emulate counters in netmap mode
Branches
Unknown
Tags
Unknown