HomeFreeBSD

epair: Avoid loading m_flags into a short

Description

epair: Avoid loading m_flags into a short

The m_flags field of struct mbuf is 24 bits wide and so gets truncated
in a couple of places in the epair code. Instead of preserving the
entire flag set, just remember whether M_BCAST or M_MCAST is set.

Approved by: re (cperciva)
MFC after: 1 week
Sponsored by: Klara, Inc.

(cherry picked from commit 48227d1c6db8fceaceebbf8578612302d64ca170)
(cherry picked from commit c3bd32f225ec093ba0f7cd7fc1a000b02aad5211)

Details

Provenance
markjAuthored on Mar 6 2023, 2:39 PM
Parents
rG069fb41af5bc: nvmecontrol: Fix default ns create parameters.
Branches
Unknown
Tags
Unknown