History log of /freebsd-current/sys/dev/qlxgbe/ql_hw.c
Revision Date Author Comments
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

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

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


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 54ab3b4a 17-Aug-2022 Justin Hibbits <jhibbits@FreeBSD.org>

Mechanically convert qlxgbe(4) to IfAPI

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


# bd78d17c 22-Jun-2022 Elliott Mitchell <ehem+freebsd@m5p.com>

qlxgbe: purge EOL release compatibility

Drop code that differentiated between FreeBSD 10 and 11.

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


# 618aa8cd 22-Apr-2022 John Baldwin <jhb@FreeBSD.org>

qlxgb/qlxgbe/qlxge: Fix build without INET and/or without INET6.

This is in preparation for adding these drivers to amd64 NOTES.


# 9fa72d33 07-Apr-2022 John Baldwin <jhb@FreeBSD.org>

qlxgbe: Remove unused variables.


# 10e3e53d 07-Apr-2022 John Baldwin <jhb@FreeBSD.org>

qlxgbe: Use select_value_count variable.


# 2c4a3d0a 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

qlxgbe: clean up empty lines in .c and .h files


# aeb665b5 30-Mar-2020 Ed Maste <emaste@FreeBSD.org>

remove extraneous double ;s in sys/


# 7029da5c 26-Feb-2020 Pawel Biernacki <kaktus@FreeBSD.org>

Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)

r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
still not MPSAFE (or already are but aren’t properly marked).
Use it in preparation for a general review of all nodes.

This is non-functional change that adds annotations to SYSCTL_NODE and
SYSCTL_PROC nodes using one of the soon-to-be-required flags.

Mark all obvious cases as MPSAFE. All entries that haven't been marked
as MPSAFE before are by default marked as NEEDGIANT

Approved by: kib (mentor, blanket)
Commented by: kib, gallatin, melifaro
Differential Revision: https://reviews.freebsd.org/D23718


# 971e53c9 29-Mar-2018 David C Somayajulu <davidcs@FreeBSD.org>

1. Add additional debug prints.
2. Break transmit when IFF_DRV_RUNNING is OFF.
3. set desc_count=0 for default case in switch in ql_rcv_isr()
MFC after:5 days


# b65c0c07 22-Feb-2018 David C Somayajulu <davidcs@FreeBSD.org>

1. Added support to offline a port if is error recovery on successful.
2. Sysctls to enable/disable driver_state_dump and error_recovery.
3. Sysctl to control the delay between hw/fw reinitialization and
restarting the fastpath.
4. Stop periodic stats retrieval if interface has IFF_DRV_RUNNING flag off.
5. Print contents of PEG_HALT_STATUS1 and PEG_HALT_STATUS2 on heartbeat
failure.
6. Speed up slowpath shutdown during error recovery.
7. link_state update using atomic_store.
8. Added timestamp information on driver state and minidump captures.
9. Added support for Slowpath event logging
10.Added additional failure injection types to simulate failures.


# 718cf2cc 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys/dev: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.


# c6acf96a 11-Oct-2017 David C Somayajulu <davidcs@FreeBSD.org>

Add sanity checks in ql_hw_send() qla_send() to ensure that empty slots
in Tx Ring map to empty slot in Tx_buf array before Transmits. If the
checks fail further Transmission on that Tx Ring is prevented.

MFC after:5 days


# 143ed053 10-Oct-2017 David C Somayajulu <davidcs@FreeBSD.org>

Revert Commit r324290
Add sanity checks in ql_hw_send() qla_send() to ensure that empty slots
in Tx Ring map to empty slot in Tx_buf array before Transmits. If the
checks fail further Transmission on that Tx Ring is prevented.


# 99a0a983 04-Oct-2017 David C Somayajulu <davidcs@FreeBSD.org>

Add sanity checks in ql_hw_send() qla_send() to ensure that empty slots
in Tx Ring map to empty slot in Tx_buf array before Transmits. If the
checks fail further Transmission on that Tx Ring is prevented.


# c06073f5 27-Sep-2017 David C Somayajulu <davidcs@FreeBSD.org>

Tx Ring Shadow Consumer Index Register needs to be cleared prior
to passing it's physical address to the FW during Tx Create Context.

MFC after:3 days


# 61fb8de9 26-Sep-2017 David C Somayajulu <davidcs@FreeBSD.org>

Fix delete all multicast addresses

Submitted by:Anand.Khoje@cavium.com
MFC after:5 days


# 203f9d18 20-Sep-2017 David C Somayajulu <davidcs@FreeBSD.org>

1. ql_hw.c:
In ql_hw_send() return EINVAL when TSO framelength exceeds max
supported length by HW.(davidcs)
2. ql_os.c:
In qla_send() call bus_dmamap_unload before freeing mbuf or
recreating dmmamap.(davidcs)
In qla_fp_taskqueue() Add additional checks for IFF_DRV_RUNNING
Fix qla_clear_tx_buf() call bus_dmamap_sync() before freeing
mbuf.

Submitted by:David.Bachu@netapp.com
MFC after:5 days


# 7fb51846 21-Aug-2017 David C Somayajulu <davidcs@FreeBSD.org>

Upgrade FW to 5.4.66
sysctls to display stats, stats polled every 2 seconds
Modify QLA_LOCK()/QLA_UNLOCK() to not sleep after acquiring mtx_lock
Add support to turn OFF/ON error recovery following heartbeat failure for
debug purposes.
Set default max values to 32 Tx/Rx/SDS rings

MFC after:5 days


# 12e46bad 19-Jul-2017 David C Somayajulu <davidcs@FreeBSD.org>

Raise the watchdog timer interval to 2 ticks, there by guaranteeing
that it fires between 1ms and 2ms. `
Treat two consecutive occurrences of Heartbeat failures as a legitimate
Heartbeat failure

MFC after:3 days


# b5c2be72 05-Jul-2017 David C Somayajulu <davidcs@FreeBSD.org>

Allow MTU changes without ifconfig down/up

MFC after:5 days


# d2b62c58 20-Jun-2017 David C Somayajulu <davidcs@FreeBSD.org>

Add pkts_cnt_oversized to stats.


# 9a5f7854 19-Apr-2017 David C Somayajulu <davidcs@FreeBSD.org>

Cleanup QLA_LOCK/QLA_UNLOCK macros
remove unused QLA_TX_LOCK/QLA_TX_UNLOCK macros
format qla_error_recovery()

MFC after:3 days


# a7c62c11 30-Mar-2017 David C Somayajulu <davidcs@FreeBSD.org>

Add support for optional Soft LRO

MFC after:5 days


# b89f2279 24-Jan-2017 David C Somayajulu <davidcs@FreeBSD.org>

Added support for if_transmit and if_qflush
Removed if_start
updated version to 3.10.33

MFC after:5 days


# da834d52 06-Oct-2016 David C Somayajulu <davidcs@FreeBSD.org>

Add support for adding up to 64 Multicast addresses with a single
mailbox command

MFC after:5 days


# 00caeec7 16-Aug-2016 David C Somayajulu <davidcs@FreeBSD.org>

Add support for set/get cam search mode

MFC after: 5 days


# 6a62bec0 16-Aug-2016 David C Somayajulu <davidcs@FreeBSD.org>

Upgrade fw, bootloader and minidump template to version 5.4.58
Add minidump retrieval code

MFC after: 5 days


# 453130d9 02-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

sys/dev: minor spelling fixes.

Most affect comments, very few have user-visible effects.


# 74b8d63d 10-Apr-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

Cleanup unnecessary semicolons from the kernel.

Found with devel/coccinelle.


# 467dcb5a 20-Oct-2015 David C Somayajulu <davidcs@FreeBSD.org>

ql_hw.c: fixed error code INJCT_HEARTBEAT_FAILURE
ql_os.c: removed unnecessary debug printf
ql_ver.h: updated version number
MFC after:5 days


# 35291c22 23-Jun-2015 David C Somayajulu <davidcs@FreeBSD.org>

Updated Copyright information
Added support for the following:
- iSCSI TLV (requires 64 Tx and 32 Rx rings
- 9K receive buffers for jumbo frames (feature may be enabled/disabled)
- builtin firmware, bootloader and minidump template
- quick stats
- async event handling for SFP insertion/removal and DCBX changes
- Configuring DCBX and interrupt coalescing parameters


# c8dfaf38 18-Sep-2014 Gleb Smirnoff <glebius@FreeBSD.org>

Mechanically convert to if_inc_counter().


# c12c5bfb 14-Nov-2013 David C Somayajulu <davidcs@FreeBSD.org>

ql_hw.[c,h]: set minimum thresholds on pkt size for lro path.
ql_ioctl.c: validate the length and address of buffer passed to QL_RD_FW_DUMP

Submitted by:David C Somayajulu


# f10a77bb 15-May-2013 David C Somayajulu <davidcs@FreeBSD.org>

Add Qlogic 10Gigabit Ethernet & CNA Adapter Driver Version 3.10.10 for
QLogic 8300 Series Adapters

Submitted by: David C Somayajulu (davidcs@freebsd.org) QLogic Corporation
Approved by: George Neville-Neil (gnn@freebsd.org)