HomeFreeBSD

LinuxKPI: netdev: expose napi state

Description

LinuxKPI: netdev: expose napi state

There are drivers directly accessing napi->state testing for bits
(NAPI_STATE_SCHED encountered so far). Rename the internal _flags
struct field to state and expose our internal state flag bits along
with the one official aliased.

As I left in a comment, I wished Linux would hide these accesses
behind inline functions or by other means and not public expose
the implementation details.

(cherry picked from commit ac07a3b8b6ec14059136f87a1aba0bf4e3333361)

Details

Provenance
bzAuthored on Sep 7 2022, 11:35 PM
Parents
rG4e1b6aeee02f: net80211: update (parts of) Action field categories
Branches
Unknown
Tags
Unknown