HomeFreeBSD

ixgbe: define IXGBE_LE32_TO_CPUS

Description

ixgbe: define IXGBE_LE32_TO_CPUS

Richard Lowe notes in PR 170267 IXGBE_LE32_TO_CPUS was previously
directly defined as le32dec() which is a pure function but the shared
code is expecting an in place conversion.

In SVN r282289 its assignment was removed altogether.

There was some deliberation in the PR on what to define this as, we
just need to do the update in place which is easy enough.

The uintptr_t casts in the shared code were from a DPDK sync and are
unwanted with our new ixgbe_osdep.h implementation.

PR: 170267
Reported by: Richard Lowe <richlowe@richlowe.net>

(cherry picked from commit bef7d49101cdf28830a648f63ff00998fbe54715)

Details

Provenance
Kevin Bowling <kbowling@FreeBSD.org>Authored on Aug 14 2023, 1:47 AM
Parents
rG94fb5053dabd: subr_unit.c: another attempt to fix the build
Branches
Unknown
Tags
Unknown

Event Timeline

Kevin Bowling <kbowling@FreeBSD.org> committed rG42d73e9ec146: ixgbe: define IXGBE_LE32_TO_CPUS (authored by Kevin Bowling <kbowling@FreeBSD.org>).Aug 25 2023, 7:17 AM