HomeFreeBSD

frag6: small improvements

Description

frag6: small improvements

Rather than walking the mbuf chain manually use m_last() which doing
exactly that for us.
Defer initializing srcifp for longer as there are multiple exit paths
out of the function which do not need it set. Initialize before taking
the lock though.
Rename the mtx lock to match the type better.

MFC after: 3 weeks
Sponsored by: Netflix

Details

Provenance
bzAuthored on
Parents
rS354016: frag6: remove IP6_REASS_MBUF macro
Branches
Unknown
Tags
Unknown