aboutsummaryrefslogtreecommitdiff
path: root/tools/test/iconv/(public-mirror)
diff options
context:
space:
mode:
authorSumit Saxena <ssaxena@FreeBSD.org>2026-01-09 10:28:53 +0000
committerSumit Saxena <ssaxena@FreeBSD.org>2026-01-09 10:40:18 +0000
commitd53d7b466016408229491cfd2f8bdc742ff642e3 (patch)
tree07aaab9919dc371e95462da5ea5856891dfed156 /tools/test/iconv/(public-mirror)
parenta556feb99765a8eae96b2077067dd482c9dd3f57 (diff)
bnxt: Fix up ioctl opcodes to support IOC_VOID along with IOC_INHEADmain
The driver and applications currently use hard-coded numeric ioctl command opcodes. These opcodes are interpreted as having the IOC_IN direction (data copied from the user application to the driver), regardless of the actual packet size. Consequently, when the packet size is zero and the direction is set to IOC_IN, the kernel fails these ioctls if COMPAT is disabled. While the driver and applications should ideally set the direction correctly— for example, using IOC_VOID when the packet size is zero—the driver will now be updated to define ioctl opcodes using the _IOC macro to support both IOC_VOID and IOC_IN. This change ensures backward compatibility with older applications that exclusively use IOC_IN. Reviewed by: gallatin Differential Revision: https://reviews.freebsd.org/D54601 MFC after: 3 days
Diffstat (limited to 'tools/test/iconv/(public-mirror)')
0 files changed, 0 insertions, 0 deletions