summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/bnxt
Commit message (Collapse)AuthorAgeFilesLines
* [bnxt] Handle link related async eventsJoseph Wong2025-10-013-30/+105
| | | | | | | Handle async events related to link speed change, link speed config change, and port phy config changes. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Add error recovery supportJoseph Wong2025-09-183-60/+662
| | | | | | | | | Add support to advertise adapter error recovery support to the firmware. Implement error recovery operations if adapter fault is detected. Refactor memory allocation to better align with probe and open functions. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Update CQ doorbell typeJoseph Wong2025-08-131-2/+2
| | | | | | | Update completion queue doorbell to a non-arming type, since polling is used. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Remove unnecessary test_if macroMichael Brown2025-07-303-9/+8Star
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [bnxt] Remove unnecessary I/O macrosJoseph Wong2025-07-302-19/+14Star
| | | | | | | Remove unnecessary driver specific macros. Use standard pci_read_config_xxxx, pci_write_config_xxx, writel/q calls. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Update supported devices arrayJoseph Wong2025-07-031-2/+6
| | | | | | | Add support for new device IDs. Remove device IDs which were never in use. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Update device descriptionsJoseph Wong2025-07-021-59/+59
| | | | | | Use human readable strings for dev_description in PCI_ROM array. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Remove VLAN stripping logicJoseph Wong2025-06-293-102/+3Star
| | | | | | | | Remove logic that programs the hardware to strip out VLAN from RX packets. Do not drop packets due to VLAN mismatch and allow the upper layer to decide whether to discard the packets. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Increase Tx descriptorsJoseph Wong2025-06-251-2/+2
| | | | | | Increase TX and CMP descriptor counts. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Remove TX paddingJoseph Wong2025-06-112-8/+0Star
| | | | | | Remove unnecessary TX padding. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Use updated DMA APIsJoseph Wong2025-05-142-101/+118
| | | | | | | | Replace malloc_phys with dma_alloc, free_phys with dma_free, alloc_iob with alloc_rx_iob, free_iob with free_rx_iob, virt_to_bus with dma or iob_dma. Replace dma_addr_t with physaddr_t. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Return proper error codes in probeJoseph Wong2025-05-141-3/+6
| | | | | | | | | Return the proper error codes in bnxt_init_one, to indicate the correct return status upon completion. Failure paths could incorrectly indicate a success. Correct assertion condition to check for non-NULL pointer. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [uaccess] Remove redundant copy_from_user() and copy_to_user()Michael Brown2025-04-301-0/+1
| | | | | | | Remove the now-redundant copy_from_user() and copy_to_user() wrapper functions. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [bnxt] Allocate TX rings with firmware inputJoseph Wong2025-02-072-2/+1Star
| | | | | | | Use queue_id value retrieved from firmware unconditionally when allocating TX rings. Signed-off by: Joseph Wong <joseph.wong@broadcom.com>
* [drivers] Sort PCI_ROM() entries numericallyGeert Stappers2024-02-221-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with the help of this Perl script: $MARKER = 'PCI_ROM'; # a regex $AB = 1; # At Begin @HEAD = (); @ITEMS = (); @TAIL = (); foreach $fn (@ARGV) { open(IN, $fn) or die "Can't open file '$fn': $!\n"; while (<IN>) { if (/$MARKER/) { push @ITEMS, $_; $AB = 0; # not anymore at begin } else { if ($AB) { push @HEAD, $_; } else { push @TAIL, $_; } } } } continue { close IN; open(OUT, ">$fn") or die "Can't open file '$fn' for output: $!\n"; print OUT @HEAD; print OUT sort @ITEMS; print OUT @TAIL; close OUT; # For a next file $AB = 1; @HEAD = (); @ITEMS = (); @TAIL = (); } Executed that script while src/drivers/ as current working directory, provided '$(grep -rl PCI_ROM)' as argument. Signed-off-by: Geert Stappers <stappers@stappers.it>
* [bnxt] Add support for BCM957608Joseph Wong2024-02-084-101/+720
| | | | | | | Add support for BCM957608 device. Add support for additional link speeds supported by BCM957608. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
* [bnxt] Add support for additional chip IDsJoseph Wong2024-01-192-2/+6
| | | | | | | Add additional chip IDs that can be recognized as part of the thor family. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [netdevice] Remove netdev_priv() helper functionMichael Brown2023-09-131-9/+9
| | | | | | | | | | Some network device drivers use the trivial netdev_priv() helper function while others use the netdev->priv pointer directly. Standardise on direct use of netdev->priv, in order to free up the function name netdev_priv() for reuse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [bnxt] Use hexadecimal values in PCI_ROM entriesJoseph2021-05-172-141/+64Star
| | | | | | | | | | Use hexadecimal values instead of macros in PCI_ROM entries so Perl script can parse them correctly. Move PCI_ROM entries from header file to C file. Integrate bnxt_vf_nics array into PCI_ROM entries by introducing BNXT_FLAG_PCI_VF flag into driver_data field. Add whitespaces in PCI_ROM entries for style consistency. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [malloc] Rename malloc_dma() to malloc_phys()Michael Brown2020-11-051-15/+15
| | | | | | | | | | | | The malloc_dma() function allocates memory with specified physical alignment, and is typically (though not exclusively) used to allocate memory for DMA. Rename to malloc_phys() to more closely match the functionality, and to create name space for functions that specifically allocate and map DMA-capable buffers. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [pci] Update drivers to use pci_ioremap()Michael Brown2020-09-251-1/+1
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [bnxt] Add driver support for Broadcom NetXtreme-E AdaptersJoseph Wong2020-05-064-0/+14190
Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>