History log of /freebsd/sys/dev/qlnx/qlnxe/qlnx_os.c (Results 1 – 25 of 59)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 386960a8 22-Jul-2025 Zhenlei Huang <zlei@FreeBSD.org>

qlnxe: Advertise the IFCAP_HWSTATS capability

The hardware can count statistics and the driver has already retrieved
them via qlnx_get_counter().

Advertise the IFCAP_HWSTATS capability to avoid the

qlnxe: Advertise the IFCAP_HWSTATS capability

The hardware can count statistics and the driver has already retrieved
them via qlnx_get_counter().

Advertise the IFCAP_HWSTATS capability to avoid the net stack from
double counting IFCOUNTER_IBYTES.

Reviewed by: kbowling
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D51451

show more ...


# c1886033 22-Jul-2025 Zhenlei Huang <zlei@FreeBSD.org>

qlnxe: Fix advertising the IFCAP_LINKSTATE capability

The following up advertising of IFCAP_HWCSUM capability unconditionally
overwrite IFCAP_LINKSTATE.

Reviewed by: kbowling
MFC after: 3 days
Diff

qlnxe: Fix advertising the IFCAP_LINKSTATE capability

The following up advertising of IFCAP_HWCSUM capability unconditionally
overwrite IFCAP_LINKSTATE.

Reviewed by: kbowling
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D51450

show more ...


# 12fea464 17-Jul-2025 Zhenlei Huang <zlei@FreeBSD.org>

qlnxe: Fix error handling of SIOCGI2C ioctl

The error -1 is actually ERESTART in the context of syscall. It is for
kernel mode only and will not be passed to user mode. When the kernel
sees this err

qlnxe: Fix error handling of SIOCGI2C ioctl

The error -1 is actually ERESTART in the context of syscall. It is for
kernel mode only and will not be passed to user mode. When the kernel
sees this error it will restart the syscall.

When the the SFP module data is not available, e.g. the SFP module is
not present, the ioctl handler returns ERESTART and kernel will retry
infinitely, hence the userland `ifconfig -v ql0` will hang forever until
get interrupted. That is apparently wrong.

Fix that by returning error ENODEV to indicate the SFP module data is
not available.

As for the case that ecore_ptt_acquire() fails, it appears to be quite
safe to restart, so keep returning ERESTART.

Reported by: Steve Wheeler
See also: https://redmine.pfsense.org/issues/16248
Reviewed by: kbowling
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D51351

show more ...


# 10d9ec31 17-Jul-2025 Zhenlei Huang <zlei@FreeBSD.org>

qlnxe: Fix build with INET

opt_inet.h is missing from 5684c8783b64, thus actually `#ifdef INET`
does not work.

PR: 287445
See also: https://redmine.pfsense.org/issues/16248
Reviewed by: kbowling
T

qlnxe: Fix build with INET

opt_inet.h is missing from 5684c8783b64, thus actually `#ifdef INET`
does not work.

PR: 287445
See also: https://redmine.pfsense.org/issues/16248
Reviewed by: kbowling
Tested by: leper <leper4@protonmail.com>
Fixes: 5684c8783b64 qlnxe: Add missing #ifdef INET to fix amd64 LINT-NOINET/NOIP builds
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D51295

show more ...


Revision tags: release/14.3.0-p1, release/14.2.0-p4, release/13.5.0-p2
# 4f7473d1 12-Jun-2025 Kristof Provost <kp@FreeBSD.org>

qlnx: fix panic at startup

While attaching the qlnx driver we can end up trying to call ifmedia functions
before those are set up (through ether_ifattach() -> rtnl_handle_ifattach()
-> dump_iface()

qlnx: fix panic at startup

While attaching the qlnx driver we can end up trying to call ifmedia functions
before those are set up (through ether_ifattach() -> rtnl_handle_ifattach()
-> dump_iface() -> get_operstate_ether() -> ifmedia_ioctl()). Postpone the
ether_ifattach() until after the ifmedia setup.

Reviewed by: markj,zlei
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D50819

show more ...


Revision tags: release/14.3.0, release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0
# 1eaecc21 08-Nov-2024 Justin Hibbits <jhibbits@FreeBSD.org>

qlnx: Convert recent changes to IfAPI

Sponsored by: Juniper Networks, Inc.
Reviewed by: zlei
Differential Revision: https://reviews.freebsd.org/D47533


Revision tags: release/13.4.0
# 792226e5 05-Aug-2024 Keith Reynolds <keith.reynolds@hpe.com>

qlnxe: Allow MAC address override

The qlnxe driver always sets the NIC's rx mac address to the card's
default MAC, ignoring any MAC address set via ifconfig.

PR: 278085
MFC after: 1 week


# aa386085 28-Jun-2024 Zhenlei Huang <zlei@FreeBSD.org>

net: Remove unneeded NULL check for the allocated ifnet

Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functiona

net: Remove unneeded NULL check for the allocated ifnet

Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by: kp, imp, glebius, stevek
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D45740

show more ...


Revision tags: release/14.1.0, release/13.3.0
# 801b12ba 05-Feb-2024 Mark Johnston <markj@FreeBSD.org>

qlnx: Use device_set_descf()

No functional change intended.

MFC after: 1 week


# 1c45a62a 28-May-2024 Keith Reynolds <keith.reynolds@hpe.com>

qlnxe: Fix multiple locking issues

Multiple issues are reported with WITNESS and code inspection of the
locking and lock initialization.

PR: 278084
MFC after: 1 week


# fb78e20b 28-May-2024 Kevin Bowling <kbowling@FreeBSD.org>

Revert "qlnxe: Fix multiple locking issues"

This commit is missing a file, revert so I can do it correctly,
atomically.

This reverts commit 29684d08fa3010c2035b4eb1ce0b39091ad07723.


# 29684d08 28-May-2024 Keith Reynolds <keith.reynolds@hpe.com>

qlnxe: Fix multiple locking issues

Multiple issues are reported with WITNESS and code inspection of the
locking and lock initialization.

PR: 278084
MFC after: 1 week


# e3ec564e 28-May-2024 Keith Reynolds <keith.reynolds@hpe.com>

qlnxe: Fix promiscuous and allmulti settings

PR: 278087
MFC after: 1 week


Revision tags: release/14.0.0
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 5684c878 08-Jul-2023 Jessica Clarke <jrtc27@FreeBSD.org>

qlnxe: Add missing #ifdef INET to fix amd64 LINT-NOINET/NOIP builds

The approach here is copied directly from qlxgb.

Fixes: b0d3d44dfe63 ("qlnxe: add driver to amd64 NOTES")


# 406ff3d5 08-Jul-2023 Mark O'Donovan <shiftee@posteo.net>

Simplify buffer count calculation

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/778


# 0b53a997 08-Jul-2023 Mark O'Donovan <shiftee@posteo.net>

Remove duplicate #include

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/778


# c1be7151 01-Jul-2023 Mark O'Donovan <shiftee@posteo.net>

qlnxe: Fix too many args in call to internal_ram_wr()

internal_ram_wr() only takes 3 args when ECORE_CONFIG_DIRECT_HWFN
is defined

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: im

qlnxe: Fix too many args in call to internal_ram_wr()

internal_ram_wr() only takes 3 args when ECORE_CONFIG_DIRECT_HWFN
is defined

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/779

show more ...


# 99e5ffe1 01-Jul-2023 Mark O'Donovan <shiftee@posteo.net>

qlnxe: Move sriov includes to qlnx_os.c

SRIOV is being enabled in ecore.h but by then
the qlnx_os.h header has been processed and not
included the relevant headers

Signed-off-by: Mark O'Donovan <sh

qlnxe: Move sriov includes to qlnx_os.c

SRIOV is being enabled in ecore.h but by then
the qlnx_os.h header has been processed and not
included the relevant headers

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/779

show more ...


Revision tags: release/13.2.0, release/12.4.0
# 727bfe38 23-Sep-2022 Justin Hibbits <jhibbits@FreeBSD.org>

Mechanically convert qlnx(4) to IfAPI

Reviewed By: zlei
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37856


# bbe35708 23-Jun-2022 Elliott Mitchell <ehem+freebsd@m5p.com>

qlnx: purge EOL release compatibility

Drop code that supproted FreeBSD 10 and 11.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/603
Differential Revision: https://revie

qlnx: purge EOL release compatibility

Drop code that supproted FreeBSD 10 and 11.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/603
Differential Revision: https://reviews.freebsd.org/D35560

show more ...


Revision tags: release/13.1.0
# 2f87208e 09-May-2022 John Baldwin <jhb@FreeBSD.org>

qlnx/qlxgb/qlxgbe/qlxge: Remove unused devclass arguments to DRIVER_MODULE.


# 78fc83f0 08-Apr-2022 Gordon Bergling <gbe@FreeBSD.org>

qlnxe(4): Fix a typo in a source code comment

- s/mulitple/multiple/

MFC after: 3 days


# eb147f78 08-Apr-2022 John Baldwin <jhb@FreeBSD.org>

qlnx: Mark variables only used in debug traces as unused.


# 885db930 08-Apr-2022 John Baldwin <jhb@FreeBSD.org>

qlnx: Comment out remaining references to tx_data_bd.


123