#
8b012980 |
| 27-Jan-2025 |
Ed Maste <emaste@FreeBSD.org> |
Revert "oce(4): deprecate"
These are reportedly still in fairly wide use.
We strongly encourage folks with this hardware to post a dmesg on dmesgd.nycbug.org.
This reverts commit 4591322980a37d6ee
Revert "oce(4): deprecate"
These are reportedly still in fairly wide use.
We strongly encourage folks with this hardware to post a dmesg on dmesgd.nycbug.org.
This reverts commit 4591322980a37d6ee38a3ed70569366e16ca71f6.
Discussed with: brooks Sponsored by: The FreeBSD Foundation
show more ...
|
#
0fc7bdc9 |
| 29-Nov-2024 |
Richard Scheffenegger <rscheff@FreeBSD.org> |
tcp: extend the use of the th_flags accessor function
Formally, there are 12 bits for TCP header flags. Use the accessor functions in more (kernel) places.
No functional change.
Reviewed By: cc, #
tcp: extend the use of the th_flags accessor function
Formally, there are 12 bits for TCP header flags. Use the accessor functions in more (kernel) places.
No functional change.
Reviewed By: cc, #transport, cy, glebius, #iflib, kbowling Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D47063
show more ...
|
Revision tags: release/14.2.0, release/13.4.0 |
|
#
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 ...
|
#
c704b87b |
| 05-Jun-2024 |
Mark Johnston <markj@FreeBSD.org> |
oce: Use device_set_descf()
No functional change intended.
MFC after: 1 week
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
71625ec9 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
#
45913229 |
| 14-Jun-2023 |
Brooks Davis <brooks@FreeBSD.org> |
oce(4): deprecate
The Emulex OneConnect NIC driver hasn't seen any commits other than ioctl bug fixes (some severe) and sweeping commits since 2016. There is no indication of new parts since 2014 o
oce(4): deprecate
The Emulex OneConnect NIC driver hasn't seen any commits other than ioctl bug fixes (some severe) and sweeping commits since 2016. There is no indication of new parts since 2014 or earlier. As such, deprecate the driver with the aim of removing it prior to FreeBSD 15.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40531
show more ...
|
#
758927a9 |
| 14-Jun-2023 |
Brooks Davis <brooks@FreeBSD.org> |
oce(4): Don't directly access usespace
Replace direct stores to userspace addresses (never safe and broken on modern CPUs) with a copyout. Use a static assert on the size to ensure we don't overflo
oce(4): Don't directly access usespace
Replace direct stores to userspace addresses (never safe and broken on modern CPUs) with a copyout. Use a static assert on the size to ensure we don't overflow the field.
Reviewed by: markj, jhb Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D40519
show more ...
|
#
a6b55ee6 |
| 17-Apr-2023 |
Gleb Smirnoff <glebius@FreeBSD.org> |
net: replace IFF_KNOWSEPOCH with IFF_NEEDSEPOCH
Expect that drivers call into the network stack with the net epoch entered. This has already been the fact since early 2020. The net interrupts, that
net: replace IFF_KNOWSEPOCH with IFF_NEEDSEPOCH
Expect that drivers call into the network stack with the net epoch entered. This has already been the fact since early 2020. The net interrupts, that are marked with INTR_TYPE_NET, were entering epoch since 511d1afb6bf. For the taskqueues there is NET_TASK_INIT() and all drivers that were known back in 2020 we marked with it in 6c3e93cb5a4. However in e87c4940156 we took conservative approach and preferred to opt-in rather than opt-out for the epoch.
This change not only reverts e87c4940156 but adds a safety belt to avoid panicing with INVARIANTS if there is a missed driver. With INVARIANTS we will run in_epoch() check, print a warning and enter the net epoch. A driver that prints can be quickly fixed with the IFF_NEEDSEPOCH flag, but better be augmented to properly enter the epoch itself.
Note on TCP LRO: it is a backdoor to enter the TCP stack bypassing some layers of net stack, ignoring either old IFF_KNOWSEPOCH or the new IFF_NEEDSEPOCH. But the tcp_lro_flush_all() asserts the presence of network epoch. Indeed, all NIC drivers that support LRO already provide the epoch, either with help of INTR_TYPE_NET or just running NET_EPOCH_ENTER() in their code.
Reviewed by: zlei, gallatin, erj Differential Revision: https://reviews.freebsd.org/D39510
show more ...
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
67fd4c9d |
| 19-Aug-2022 |
Justin Hibbits <jhibbits@FreeBSD.org> |
Mechanically convert oce(4) to IfAPI
Reviewed By: zlei Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37829
|
Revision tags: release/13.1.0 |
|
#
4e75e496 |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
oce: Remove unused devclass argument to DRIVER_MODULE.
|
#
19c099a8 |
| 08-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
oce: Remove unused variables.
|
#
e363f832 |
| 18-Dec-2021 |
Michael Tuexen <tuexen@FreeBSD.org> |
if_oce: fix epoch handling
Thanks to gallatin@ for suggesting the patch.
PR: 260330 Reported by: Vincent Milum Jr. Reviewed by: gallatin, glebius Tested by: Vincent Milum Jr. MFC after: 3 day
if_oce: fix epoch handling
Thanks to gallatin@ for suggesting the patch.
PR: 260330 Reported by: Vincent Milum Jr. Reviewed by: gallatin, glebius Tested by: Vincent Milum Jr. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D33395
show more ...
|
Revision tags: release/12.3.0 |
|
#
71776d67 |
| 26-May-2021 |
Mark Johnston <markj@FreeBSD.org> |
oce: Fix handling of m_pullup() errors in oce_tso_setup()
m_pullup() frees the input mbuf chain upon a failure. Set *mpp to NULL in this case to ensure that the caller does not free the chain again
oce: Fix handling of m_pullup() errors in oce_tso_setup()
m_pullup() frees the input mbuf chain upon a failure. Set *mpp to NULL in this case to ensure that the caller does not free the chain again.
PR: 224928 Submitted by: Lv Yunlong <lylgood@foxmail.com> (original version) MFC after: 1 week
show more ...
|
Revision tags: release/13.0.0, release/12.2.0 |
|
#
cec3c564 |
| 02-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
oce: clean up empty lines in .c and .h files
|
#
b75a7728 |
| 20-Jun-2020 |
Conrad Meyer <cem@FreeBSD.org> |
oce(4): Account and trace mbufs before handing to hw
Once tx mbufs have been handed to hardware, nothing serializes the tx path against completion and potential use-after-free of the outbound mbuf.
oce(4): Account and trace mbufs before handing to hw
Once tx mbufs have been handed to hardware, nothing serializes the tx path against completion and potential use-after-free of the outbound mbuf. Perform accounting and BPF tap before queueing to hardware to avoid this race.
Submitted by: Steve Wirtz <steve_wirtz AT dell.com> Reviewed by: markj, rstone Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D25364
show more ...
|
#
cbb9ccf7 |
| 15-Jun-2020 |
Ryan Moeller <freqlabs@FreeBSD.org> |
Avoid trying to toggle TSO twice
Remove TSO from the toggle mask when automatically disabled by TXCKSUM* in various NIC drivers.
Reviewed by: hselasky, np, gallatin, jpaetzel Approved by: mav (ment
Avoid trying to toggle TSO twice
Remove TSO from the toggle mask when automatically disabled by TXCKSUM* in various NIC drivers.
Reviewed by: hselasky, np, gallatin, jpaetzel Approved by: mav (mentor) MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D25120
show more ...
|
Revision tags: release/11.4.0 |
|
#
75dfc66c |
| 27-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358269 through r358399.
|
#
a9208e98 |
| 27-Feb-2020 |
Warner Losh <imp@FreeBSD.org> |
Remove FreeBSD 7-9 support from oce
Use newer pci_find_cap API now that the need to remap the old API is gone.
|
#
c76ddeeb |
| 24-Dec-2019 |
Mark Johnston <markj@FreeBSD.org> |
oce: Disallow the passthrough ioctl for unprivileged users.
A missing check meant that unprivileged users could send passthrough commands to the device firmware.
Reported by: Ilja Van Sprundel <iva
oce: Disallow the passthrough ioctl for unprivileged users.
A missing check meant that unprivileged users could send passthrough commands to the device firmware.
Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> MFC after: 3 days Sponsored by: The FreeBSD Foundation
show more ...
|
#
6e7ecc9a |
| 18-Dec-2019 |
Mark Johnston <markj@FreeBSD.org> |
oce: Tighten input validation in the SIOCGI2C handler.
Missing validation meant that it was possible to read 8 bytes beyond the end of sfp_vpd_dump_buffer.
Reported by: Ilja Van Sprundel <ivansprun
oce: Tighten input validation in the SIOCGI2C handler.
Missing validation meant that it was possible to read 8 bytes beyond the end of sfp_vpd_dump_buffer.
Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> Reviewed by: delphij, ram MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22859
show more ...
|
Revision tags: release/12.1.0 |
|
#
ab7de25c |
| 06-Aug-2019 |
Kyle Evans <kevans@FreeBSD.org> |
oce(4): potential out of bounds access before vector validation
Submitted by: Augustin Cavalier <waddlesplash@gmail.com> Obtained from: Haiku (ec2b89264cfc63e05e611cce82cc449197403aa4) MFC after: 3
oce(4): potential out of bounds access before vector validation
Submitted by: Augustin Cavalier <waddlesplash@gmail.com> Obtained from: Haiku (ec2b89264cfc63e05e611cce82cc449197403aa4) MFC after: 3 days
show more ...
|
Revision tags: release/11.3.0 |
|
#
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
#
35828280 |
| 28-May-2019 |
Alexander Motin <mav@FreeBSD.org> |
Fix array out of bound panic introduced in r306219.
As I see, different NICs in different configurations may have different numbers of TX and RX queues. The code was assuming 1:1 mapping between ev
Fix array out of bound panic introduced in r306219.
As I see, different NICs in different configurations may have different numbers of TX and RX queues. The code was assuming 1:1 mapping between event queues (interrupts) and TX/RX queues. Since number of interrupts is set to maximum of TX and RX queues, when those two are different, the system is doomed.
I have no documentation or deep knowledge about this hardware, so this change is based on general observations and code reading. If some of my guesses are wrong, please do better. I just confirmed HP NC550SFP NICs are working now.
MFC after: 2 weeks Sponsored by: iXsystems, Inc.
show more ...
|
#
e0dd0fe3 |
| 08-Jan-2019 |
Xin LI <delphij@FreeBSD.org> |
Added support for the SIOCGI2C ioctl.
Submitted by: Ram Kishore Vegesna <ram.vegesna@broadcom.com> Obtained from: Broadcom MFC after: 2 weeks
|
Revision tags: release/12.0.0 |
|
#
01d4e214 |
| 05-Oct-2018 |
Glen Barber <gjb@FreeBSD.org> |
MFH r338661 through r339200.
Sponsored by: The FreeBSD Foundation
|