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 25 2021, 11:52 PM
Reviewer
melifaro
Differential Revision
D31584: gre: simplify RSS ifdefs
Parents
rG8cb9af94fffc: iflib: emulate counters in netmap mode
Branches
Unknown
Tags
Unknown