rss: Accept the IPv6 hash types with extension headers
RSS defines _EX variants of the IPv6 hash types, which take the
addresses from a Home Address option or type 2 routing header when one
is present and are otherwise the same hash. The default hash
configuration lists them, and em(4), igb(4), igc(4) and ix(4) program
the card accordingly. An I226 then reports an _EX type for every IPv6
TCP packet, and for every IPv6 UDP packet when UDP ports are hashed.
rss_hash2cpuid(), rss_hash2bucket() and rss_mbuf_software_hash_v6() did
not accept the _EX types, so with options RSS and hybrid or deferred
dispatch, netisr hashed each of these packets again in software and got
the value the card had supplied. Accept the _EX types wherever the
plain ones are accepted.
On an Atom C1110 with I226 ports forwarding IPv6, the software hash took
28% of the forwarding core and matched the card's hash for all 1.2
million TCP and UDP packets compared. With this change toeplitz_hash()
ran 4 times in 603,600 packets, and one UDP flow went from 741 to 1086
[10 lines not shown]
Add PISA codegen pipeline and lowering passes
Add the IR- and MIR-level passes that make up the PISA code generation
pipeline and wire them into PISAPassConfig in PISATargetMachine:
- Intrinsic handling: PISAEmitIntrinsics, PISAExpandIntrinsics,
PISAReplaceIntrinsics
- Call/ABI lowering: PISALegalizeCalls, PISAKernelByValArgsLowering
- IR preparation: PISAPropagateNullPointers, PISALayout, PISAConstProp
- Legalization/verification: PISALegalizePredicates, PISAVerifyTypes,
PISAVerifier
- Post-selection: PISAScopeSelector, PISACacheHintSelector,
PISALegalizeSubregAccess, PISAOptimizeSubregAccess,
PISAOptimizeRedundantCopies, PISAMarkConvergentNoMerge,
PISAInsertLifetimeStart
PISAPassConfig now overrides the GlobalISel and pre/post-regalloc hooks
to run these passes, disables the machine passes that assume physical
registers, and runs the load/store vectorizer and atomic expansion in
[4 lines not shown]