mirror-linux/drivers/net/ethernet/broadcom
Edwin Peer f77cdee5db bnxt_en: resize bnxt_irq name field to fit format string
The name field of struct bnxt_irq is written using snprintf in
bnxt_setup_msix(). Make the field large enough to fit the maximal
formatted string to prevent truncation.  Truncated IRQ names are
less meaningful to the user.  For example, "enp4s0f0np0-TxRx-0"
gets truncated to "enp4s0f0np0-TxRx-" with the existing code.

Make sure we have space for the extra characters added to the IRQ
names:

  - the characters introduced by the static format string: hyphens
  - the maximal static substituted ring type string: "TxRx"
  - the maximum length of an integer formatted as a string, even
    though reasonable ring numbers would never be as long as this.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240909202737.93852-4-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-09-10 18:42:45 -07:00
..
asp2 net: bcmasp: Simplify with scoped for each OF child loop 2024-09-03 12:54:43 +02:00
bnx2x bnx2x: Remove setting of RX software timestamp 2024-09-06 09:34:18 +01:00
bnxt bnxt_en: resize bnxt_irq name field to fit format string 2024-09-10 18:42:45 -07:00
genet net: bcmgenet: Properly overlay PHY and MAC Wake-on-LAN capabilities 2024-08-08 08:29:29 -07:00
Kconfig
Makefile
b44.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
b44.h
bcm63xx_enet.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
bcm63xx_enet.h
bcm4908_enet.c net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac 2024-01-24 15:12:20 -08:00
bcm4908_enet.h
bcmsysport.c
bcmsysport.h
bgmac-bcma-mdio.c net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac 2024-01-24 15:12:20 -08:00
bgmac-bcma.c net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac 2024-01-24 15:12:20 -08:00
bgmac-platform.c net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac 2024-01-24 15:12:20 -08:00
bgmac.c net: fill in MODULE_DESCRIPTION()s for Broadcom bgmac 2024-01-24 15:12:20 -08:00
bgmac.h
bnx2.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
bnx2.h
bnx2_fw.h
cnic.c net: cnic: Convert tasklet API to new bottom half workqueue mechanism 2024-07-31 18:59:46 -07:00
cnic.h net: cnic: Convert tasklet API to new bottom half workqueue mechanism 2024-07-31 18:59:46 -07:00
cnic_defs.h
cnic_if.h cnic,bnx2,bnx2x: use UIO_MEM_DMA_COHERENT 2024-03-07 21:52:59 +00:00
sb1250-mac.c
tg3.c tg3: Remove setting of RX software timestamp 2024-09-09 17:44:40 -07:00
tg3.h ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
unimac.h