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.

MFC after: 1 week
Sponsored by: Klara, Inc.

Details

Provenance
markjAuthored on Mar 6 2023, 2:39 PM
Parents
rG506336f2cd1f: netmap: pkt-gen: init all slots of every tx ring
Branches
Unknown
Tags
Unknown