aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ice
Commit message (Collapse)AuthorAgeFilesLines
* ice: Use the mirror interface softc in PF callbacksKevin Bowling3 days1-8/+12
| | | | | | | | | | | | | PF iflib callbacks receive struct ice_softc, not struct ice_mirr_if. Resolve the mirror interface through sc->mirr_if before checking or resetting subinterface state. Use the same mirror softc when rebuilding its VSI. This records the required subinterface reset in the state consumed by the PF callback, rather than overlaying the PF softc and leaving rebuilt queues stopped. MFC after: 2 weeks Sponsored by: BBOX.io
* iflib: Own queue quiescence during power transitionsKevin Bowling3 days1-2/+2
| | | | | | | | | | | | | | | | | | | | | | Perform a terminal datapath stop before suspend and shutdown callbacks, then drain the private configuration taskqueue before entering low power. Track power state independently of queue ownership and prevent built-in admin, IOV, LED, and media-status callbacks from accessing a suspended device. Restore driver-specific state while the datapath remains stopped. Initialize it exactly once on resume when the interface is administratively up, and keep an administratively-down interface stopped. Roll back the driver when suspend or child suspension fails. Add ifdi_power_prepare() for policy which must be established before the terminal stop. Use it to snapshot ixgbe(4) wake policy and preserve X550EM PHY ordering, and remove the duplicate stop from aq(4). Reviewed by: iflib (gallatin) MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59329
* ice(4): Support Total Port Shutdown on E830 devicesSobczyk, Pawel2026-08-204-5/+22
| | | | | | | | | | | | | | | When 'Permit Total Port Shutdown' feature in BIOS is enabled then Port Disable bit is set in the Link Default Override Mask TLV PFA module in the NVM. In this mode, the driver acts as if the link_active_on_if_down flag is always disabled and disallow any change to that flag. This feature applies for E830 and E835 NIC series. Signed-off-by: Pawel Sobczyk <pawel.sobczyk@intel.com> Tested by: Mateusz Moga <mateusz.moga@intel.com> MFC after: 2 weeks Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D58149
* ice: Add led(4) identification supportKevin Bowling2026-08-182-0/+45
| | | | | | | | | | Expose the firmware-controlled physical port identification LED through /dev/led/ice*. Use the AdminQ port-identification command to select blinking mode and restore the netlist-selected original mode before the interface is stopped. MFC after: 2 weeks Sponsored by: BBOX.io
* ice(4): Add two more 4-part IDs for E835 adaptersKrzysztof Galazka2026-08-171-0/+6
| | | | | | | | | | | | | | Two additional subdevice IDs were introduced to distinguish between adapters with and without manageability over USB support. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: erj Tested by: Mateusz Moga <mateusz.moga@intel.com> MFC after: 1 week Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D57337
* ice(4): Add support for E835 CNSA 2.0 adaptersPawel Sobczyk2026-08-111-0/+30
| | | | | | | | | | | Added support for E835 adapters with post-quantum cryptographic (PQC) algorithms in firmware/software signage and in SPDM attestation. Signed-off-by: Pawel Sobczyk <pawel.sobczyk@intel.com> Reviewed by: MiƂosz Linkiewicz <milosz.linkiewicz@intel.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D57868
* ice: Report initialization failures to iflibKevin Bowling2026-08-101-9/+13
| | | | | | | | | | | | | The primary and mirror-VSI ifdi_init callbacks can return early when reset state or hardware queue and filter setup prevents initialization. Iflib then marks the interface running and enables interrupts although the driver did not finish bringing it up. Report each non-detach failure through iflib_init_failed(). Keep the existing ice reset and subinterface-reinitialization machinery responsible for scheduling recovery. MFC after: 2 weeks
* ice(4): Fix link speed after changing cable typeKrzysztof Galazka2026-06-121-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | When interface was connected to a link partner with a cable type limitting maximum supported speed, e.g. SFP+ cable in 25G port, driver incorrectly saved a supported speed as the user configured speed. This prevented interface from using all supported speeds after switching cable to SFP28. Link was established at 10G as supported by previously used SFP+ cable. Don't set user requested speed unless actually configured by an user, to allow automatic selection of highest available speed. Only when user sets custom config using advertise_speed sysctl save it and try to apply after cable is changed. Also don't save initial supported speeds if FW supports reporting default PHY config. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: kbowling, erj, mateusz.moga_intel.com Sponsored by: Intel Corporation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D53611
* ice(4): Add support for new E810-XXV-2 adaptersKrzysztof Galazka2026-06-121-0/+6
| | | | | | | | | | | Add two new subdevice IDs for E810-XXV-2 and E810-XXV-2 for OCP 3.0. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: kbowling, erj, mateusz.moga_intel.com Sponsored by: Intel Corporation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54069
* ice(4): Handle allmulti flag in ice_if_promisc_set functionYogesh Bhosale2026-02-011-5/+20
| | | | | | | | | | | | | In the ice_if_promisc_set function, the driver currently disables the IFF_ALLMULTI flag, thereby preventing the activation of multicast mode. To address this issue, implement appropriate handling to ensure the flag is managed correctly. Signed-off-by: Yogesh Bhosale <yogesh.bhosale@intel.com> Tested by: Gowthamkumar K S <gowtham.kumar.ks@intel.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54186
* ice(4): Remove unused functionKrzysztof Galazka2025-12-181-32/+4
| | | | | | | | | | | | | rss_getkey function is now available even if kernel RSS option is disabled. This makes ice_get_default_rss_key no longer needed. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: gallatin Approved by: kbowling (mentor) Fixes: 012ecdde3a810 ("ice: use newly exposed RSS hash key API rather than ad-hoc hashing") Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D54281
* ice(4): Add support for 40G maximal PMD speedKrzysztof Galazka2025-12-052-3/+5
| | | | | | | | | | | | | | E823 backplane devices may support 40G as maximal PMD speed. Extend port topology reading logic to handle this case. While at that fix indentation according to FreeBSD style(9). Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Tested by: gowtham.kumar.ks_intel.com Approved by: kbowling (mentor), erj (mentor) Sponsored by: Intel Corporation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53587
* ice: use newly exposed RSS hash key API rather than ad-hoc hashingAndrew Gallatin2025-11-221-24/+4
| | | | | Differential Revision: https://reviews.freebsd.org/D53096 Sponsored by: Netflix
* ice(4): Add support for E835-XXV-4 adapterKrzysztof Galazka2025-10-271-0/+3
| | | | | | | | | | | | Add subdevice ID and branding string for E835-XXV-4 adapter. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Approved by: kbowling (mentor), erj (mentor) Sponsored by: Intel Corporation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53319
* ice(4): Add PCI IDs for E835 devicesKrzysztof Galazka2025-10-103-0/+66
| | | | | | | | | | | | | | Add device IDs and branding strings for E835 adapters. This is a follow up for E830 adapters with Security Protocol and Data Model (SPDM) support and RDMA support available on 100 and 200Gbps links. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Approved by: kbowling (mentor), erj (mentor) Sponsored by: Intel Corporation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52782
* iflib: report output drops and handle ENOBUFS properlyAndrew Gallatin2025-09-101-2/+4
| | | | | | | | | | | | | | | | | | | | - Fix an mbuf leak with iflib.simple_tx=1 when we run out of tx descs in iflib_encap(). It seems odd to free the mbuf in iflib_encap(), but that routine consumes mbufs for other reasons, and it seemed safest to free there rather than have the simple tx routine parse return values to determine what needed to be freed. - Increment counters for output drops when ENOBUFS is encountered and output errors when other transmit errors are encountered for both the simple and normal tx routines. - Performed driver changes so that iflib drivers now add the generic output drop and output error counters to their private counters in their ifdi_get_counter routines. Reviewed by: kbowling, markj Differential Revision: https://reviews.freebsd.org/D52369 Sponsored by: Netflix
* ice(4): Fix a typo in a source code commentGordon Bergling2025-08-251-1/+1
| | | | | | - s/firwmare/firmware/ MFC after: 3 days
* ice(4): Fix a few typos in source code commentsGordon Bergling2025-08-174-5/+5
| | | | | | | | | | - s/wit/with/ - s/Recceive/Receive/ - s/convenction/convention/ - s/metaddata/metadata/ Obtained from: OpenBSD MFC after: 3 days
* ice(4): Fix setting VF MAC addressKrzysztof Galazka2025-07-181-6/+11
| | | | | | | | | | | | | | | MAC address assigned to a Virtual Function using iovctl configuration was not passed to the VF, but its presence caused ICE to reject random address generated by the VF. This lead to VF not being able to send or recieve traffic. Send the administratively assigned MAC address to a VF in a response to the 'Get VF Resources' virtual channel command. While at that replace bcopy with memcpy for consistency, and shorten an over 80 characters line. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice(4): Add MAC filter and VLAN resource limits to VFsEric Joyner2025-07-182-3/+50
| | | | | | | | | | | | | | Adds two new parameters to iovctl config for VLAN filter limits and MAC filter limits and gives them defaults of 64 and 16, respectively. These are intended to limit the number of resources that a VF can consume so that any one VF cannot starve an other VFs or the PF of filters. Signed-off-by: Eric Joyner <eric.joyner@intel.com> Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice(4): Enable WB_ON_ITR capability for VFs (#76)Krzysztof Galazka2025-07-181-0/+3
| | | | | | | | | | | Let VF driver know that HW supports WB_ON_ITR feature. It allows polling mode driver such as DPDK to configure an immediate write-back of completed descriptors. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice(4): Fix set RSS hena virtchnl op handlerKrzysztof Galazka2025-07-181-8/+25
| | | | | | | | | | Remove existing RSS HENA configuration to make sure that only config requested by VF is applied and allow VFs to disable RSS completely. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice(4): Fix re-enabling VF queuesKrzysztof Galazka2025-07-182-5/+34
| | | | | | | | | | | | | | | | On receiving a virtual channel request from VF driver tried to configure and enable Tx and Rx queues without making sure that they were disabled. It caused issue with reloading a VF driver without a reset e.g. in case it crashed. Fix that by always disabling all Rx and Tx queues. While at that make sure that only queues requested by VF driver are enabled. VF driver may use less queues than assigned to the function when it was created. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice(4): Add basic VFLR handlerKrzysztof Galazka2025-07-183-9/+55
| | | | | | | | | | | | | PF driver needs to tear down and setup VF configuration after a reset event, e.g. due to reloading a VF driver. Re-use ice_reset_vf function for that by adding new parameter, which decides if new reset has to be triggered. This most likely does not cover all necessary steps and will be extended in future commits. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice(4): Fix panic when VF uses less queues then availableKrzysztof Galazka2025-07-181-5/+7
| | | | | | | | | | | | | | | | | VF driver may request to configure MSI-X vectors for less queues than assigned by PF. Don't try to configure unassigned vectors to avoid panic. While at that make the loop process whole array of vectors received in a VIRTCHNL_OP_CFG_IRQ_MAP message from a VF. It's not guarantied that vector '0', which is used for other interrupt causes and is not mapped to a queue, will be always on the last position. Condition inside the loop already handles that vector correctly. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice: Add broadcast filter while creating VFKrzysztof Galazka2025-07-181-0/+8
| | | | | | | | | | | Filter for unicast MAC address is configured with a virtual channel message, but filter for a broadcast traffic was missing. It caused issues with e.g. ARP. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* ice: Add host SR-IOV supportKrzysztof Galazka2025-07-189-0/+2544
| | | | | | | | | Enable basic SR-IOV support for E800 adapters. Authored-by: Eric Joyner <erj@FreeBSD.org> Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1573
* machine/stdarg.h -> sys/stdarg.hBrooks Davis2025-06-111-1/+1
| | | | | | | | | | | | | Switch to using sys/stdarg.h for va_list type and va_* builtins. Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
* ice(4): Update E830-XXV device idsKrzysztof Galazka2025-06-022-16/+11
| | | | | | | | | | | | | | | | | Device ID for E830-XXV adapters was changed from 12D3 to 12DE. Update driver accordingly and bump version number. Also remove subdevice id for E830-XXV-4 for OCP 3.0, which was cancelled. Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Approved by: kbowling (mentor), erj (mentor) Tested by: Gowthamkumar K S <gowtham.kumar.ks@intel.com> MFC after: 1 week Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D50327
* ice(4): properly use kernel option RSSBrian Poole2024-11-042-8/+11
| | | | | | | | | | | | | | | | | | | Header ice_rss.h uses the kernel RSS interface if option RSS is defined. However when ice_rss.h is included by ice_lib.h there is no prior inclusion of ice_opts.h to set RSS causing ifdef RSS to always fail. Add ice_opts.h to the top of ice_lib.h (like ice_iflib.h) so RSS can be defined when ice_rss.h is parsed. With that in place, compilation fails due to a missing defintion of ICE_DEFAULT_RSS_HASH_CONFIG. It is defined in ice_rss.h only when RSS is not defined. Since this define is not part of the kernel RSS interface but ice-specific, it should always be defined. Move its definition outside of ifdef RSS. PR: 255309 Reviewed by: mhorne, erj (earlier version) MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1460
* ice: Remove RDMA feature block on E830 devicesEric Joyner2024-10-301-2/+1
| | | | | | | | | | | The decision to disable RDMA on E830 devices has been reversed; some SKUs will officially launch with RDMA support. This reverts a change introduced in "ice: Update to 1.42.5-k". Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation
* ice: Update to 1.43.2-kEric Joyner2024-10-287-36/+128
| | | | | | | | | | | | | | | | | | | | | | | - Add extra time while waiting for an EMPR to finish on E830 and E825C devices - Fix debug mask sysctl help message - Handle EAGAIN error messages from the Get Link Status AQ command by retrying them several times - Handle the condition where E830 extended temperature SKUs can have the chip initialize without the PHY subsystem being ready due to very low temperatures; the driver will print out a message when this happens - Fix inability to set link speed using the advertise_speed sysctl when link is down and the link_active_on_if_down sysctl is set to 0 - Fix issue where VLANs would not properly be set back up after a hardware reset (e.g. PF reset) (Thanks jacob.e.keller@intel.com) Signed-off-by: Eric Joyner <erj@FreeBSD.org> Tested by: Jeffrey Pieper <jeffrey.e.pieper@intel.com> MFC after: 2 days Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D46951
* ice: Update to 1.42.5-kEric Joyner2024-10-2810-107/+124
| | | | | | | | | | | | | | | | | | | | - Removes duplicate E825C printout - Fixes a package download issue with E830 - Updates mentions of E830-XXV to E830-L - Fix FW logging on load issue by limiting the setting of FW log masks and other global configuration to just the first PF of the controller - Update ice_hw_autogen.h with timesync registers (unused in this driver) - Fix possible overflow condition in NVM access function - Blocks RDMA load on E830 devices Signed-off-by: Eric Joyner <erj@FreeBSD.org> Tested by: Jeffrey Pieper <jeffrey.e.pieper@intel.com> MFC after: 2 days Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D46950
* ice: Update to 1.42.1-kEric Joyner2024-10-2840-2156/+5678
| | | | | | | | | | | | | | | | | | | | Summary: - Adds E830 device support - Adds pre-release E825C support (for the Ethernet device included in an upcoming Xeon D platform) - Add sysctl for E810 devices to print out PHY debug statistics (mostly for FEC debugging) - Adds per-TX-queue tso counter sysctl to count how many times a TSO offload was requested for a packet, matching other Intel drivers - Various bug fixes Signed-off-by: Eric Joyner <erj@FreeBSD.org> Tested by: Jeffrey Pieper <jeffrey.e.pieper@intel.com> MFC after: 2 days Relnotes: yes Sponsored by: Intel Corporation Differential Revisison: https://reviews.freebsd.org/D46949
* ice(4): Stop checking for failures from malloc(M_WAITOK)Zhenlei Huang2024-09-033-33/+6
| | | | | | | | As a consequence now ice_alloc_vsi_qmap() does not fail. Remove unneeded error checks. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852
* Revert "nvme: Separate total failures from I/O failures"Warner Losh2024-08-162-659/+0
| | | | | | | | | All kinds of crazy stuff was mixed into this commit. Revert it and do it again. This reverts commit d5507f9e436698ac17dc5ace7ef58493988a9b04. Sponsored by: Netflix
* nvme: Separate total failures from I/O failuresWarner Losh2024-08-162-0/+659
| | | | | | | | | When it's a I/O failure, we can still send admin commands. Separate out the admin failures and flag them as such so that we can still send admin commands on half-failed drives. Fixes: 9229b3105d88 (nvme: Fail passthrough commands right away in failed state) Sponsored by: Netflix
* ice(4): Update to 1.39.13-kEric Joyner2024-04-1827-784/+2134
| | | | | | | | | | | | | - Adds mirror interface functionality - Remove unused virtchnl headers Signed-off-by: Eric Joyner <erj@FreeBSD.org> MFC-with: 768329961dc0c041f7647f1c4549944a2ca168aa MFC after: 3 days Sponsored by: Intel Corporation Tested by: jeffrey.e.pieper@intel.com Differential Revision: https://reviews.freebsd.org/D44004
* ice(4): Update copyright year to 2024Eric Joyner2024-04-1858-58/+58
| | | | | | | | Signed-off-by: Eric Joyner <erj@FreeBSD.org> MFC after: 3 days Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D44003
* ice(4): Update to 1.38.16-kEric Joyner2023-09-1331-747/+1358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New features - Add sysctl "link_active_on_if_down" (defaults to 1 to match previous behavior): set this to 0 to have the driver bring the physical link down when the interface is brought administratively down - Add sysctl "temp" to read chip temperature on E810 devices; this requires a 4.30 or newer NVM (see package sysutils/intel-nvmupdate-100g) Bug fixes and general changes - (linked to irdma) properly propagate PF reset request from irdma driver - (linked to irdma) properly notify irdma of an impending PF reset - (linked to irdma) move Protocol Engine error handling to irdma - Print log message when using a DDP that doesn't support the "TX balancing" mode - Block LLDP agent configuration when DSCP QoS mode is enabled - Fix kernel panic when updating NVM when adapter is in the "TX balancing" mode - Remove ice_sbq_cmd.h since it's unused - Fix LLDP RX filter to still allow LLDP frames to be received by SW after a PF reset in SW LLDP mode - Add ice_if_needs_restart handler in order to fix a bad VLAN and link down interaction - Issue PF reset during unload - nvmupdate process fixes - Use pci_msix_table_bar() to get MSI-X bar index at runtime instead of hardcoding it Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: anzhu@netapp.com MFC after: 3 days Sponsored by: Intel Corporation, NetApp Differential Revision: https://reviews.freebsd.org/D41655
* ice: Don't restart on VLAN changesKevin Bowling2023-08-241-0/+20
| | | | | | | | | | | In rS360398, a new iflib device method was added with default of opt out for VLAN events needing an interface reset. This re-init is unnecessary for ice(4). MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D41558
* irdma(4): upgrade to 1.2.17-kBartosz Sobczak2023-08-184-18/+69
| | | | | | | | | | | | | | | | | | | | Update Intel irdma driver to version 1.2.17-k Notable changes: - pf-reset handling improvements, including fixes in communication with if_ice(4) - avoid racing when handling various events - adding sw stats sysctls - hand over pe_criterr handling from ice(4) to irdma(4) - debug prints adjustments - fix crash after changes in irdma_add_mqh_ifa_cb Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com> Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ MFC after: 1 month Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D41425
* iflib drivers: Constify PCI ID LUTsMarius Strobl2023-08-171-1/+1
| | | | | | | | Since d49e83eac3baf16a22b1c5d42e8438b68b17e6f9, iflib(9) is ready for this change. While at it, make isc_driver_version strings (static) const where not apparently un-const on purpose, too. This reduces the size of the amd64 GENERIC by about 10 KiB.
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* sys: Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-1658-58/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* ice(4): Update to 1.37.11-kEric Joyner2023-05-2460-344/+741
| | | | | | | | | | | | | | This driver update has no corresponding ice_ddp update, and doesn't contain very many functional changes: - Some refactoring for future SR-IOV PF support - Various minor fixes Signed-off-by: Eric Joyner <erj@FreeBSD.org> Tested by: jeffrey.e.pieper@intel.com MFC after: 1 week Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D39821
* ice(4): Use the existing CTLFLAG_RWTUN flag definitionZhenlei Huang2023-04-121-1/+1
| | | | | | | | | | Use it when possible, instead of separated flags. No functional change intended. Reviewed by: hselasky, erj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39466
* ice(4): Restore old conditional overwritten by last updateEric Joyner2023-03-241-1/+2
| | | | | | | | | | | | Commit 8923de590543 ("ice(4): Update to 1.37.7-k", 2023-02-13) unintentionally overwrote the change made in commit 52f45d8acee9 ("net: iflib: let the drivers use isc_capenable", 2021-12-28). Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reported by: jhibbits@ MFC after: 3 days Sponsored by: Intel Corporation
* IfAPI: Finish changes of ice(4).Justin Hibbits2023-02-142-2/+2
| | | | | | Reviewed by: erj Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38423
* ice(4): Update to 1.37.7-kPiotr Kubaj2023-02-1460-3650/+5801
| | | | | | | | | | | | | | | | | | | | | | | | | Notable changes include: - DSCP QoS Support (leveraging support added in rG9c950139051298831ce19d01ea5fb33ec6ea7f89) - Improved PFC handling and TC queue assignments (now all remaining queues are assigned to TC 0 when more than one TC is enabled and the number of available queues does not evenly divide between them) - Support for dumping the internal FW state for additional debugging by Intel support - Support for allowing "No FEC" to be a valid state for the LESM to negotiate when using non-standard compliant modules Also includes various bug fixes and smaller enhancements, too. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ Tested by: Jeff Pieper <jeffrey.pieper@intel.com> MFC after: 3 days Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D38109