aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/ena/(developers-only)
diff options
context:
space:
mode:
authorMinsoo Choo <mchoo@FreeBSD.org>2026-09-05 00:29:35 +0000
committerMinsoo Choo <mchoo@FreeBSD.org>2026-09-28 14:09:04 +0000
commitbf8c4eaee6ad85e647c3026116f58332c89e3794 (patch)
tree264d3cd551d05dfd9376f7426c6ea84728112cc0 /sys/modules/ena/(developers-only)
parentdcb84ddcfe89d358a66cffb45196e6b45b45502c (diff)
ixl: fix big-endian hardware interface handlingHEADmain
Correct the byte order at the driver interfaces that do not operate in host order. Encode little-endian Admin Queue VSI and MAC/VLAN fields, and decode firmware-provided queue handles, statistics indices, and event parameters before using them. Decode transmit descriptor writeback before examining it, and construct VLAN descriptor fields in host order for the final descriptor conversion. Store paged HMC descriptors in little-endian form and retain the selected field bits when reading HMC contexts. Keep MMIO values in host order for bus-space accessors and remove the obsolete le16_to_cpu no-op macro. In particular, retain the atomic bus_space_read_8() used for 64-bit registers. On big-endian systems, the unconverted perfect-match filter flag is presented to firmware as 0x0100 instead of 0x0001. Firmware rejects that command with EINVAL, leaving receive traffic functional only in promiscuous mode. Reviewed by: kbowling Approved by: olce (mentor) MFC after: 2 weeks Sponsored by: FreeBSD Foundation, Reliable Computer Systems Lab Pull Request: https://github.com/freebsd/freebsd-src/pull/2408
Diffstat (limited to 'sys/modules/ena/(developers-only)')
0 files changed, 0 insertions, 0 deletions