linux/drivers/net/ethernet/broadcom/bnxt
Pavan Chebbi 1e7962114c bnxt_en: Restore PTP tx_avail count in case of skb_pad() error
The current code only restores PTP tx_avail count when we get DMA
mapping errors.  Fix it so that the PTP tx_avail count will be
restored for both DMA mapping errors and skb_pad() errors.
Otherwise PTP TX timestamp will not be available after a PTP
packet hits the skb_pad() error.

Fixes: 83bb623c96 ("bnxt_en: Transmit and retrieve packet timestamps")
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240618215313.29631-4-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-06-20 06:46:15 -07:00
..
Makefile bnxt_en: Move hwmon functions into a dedicated file 2023-10-04 11:23:01 +01:00
bnxt.c bnxt_en: Restore PTP tx_avail count in case of skb_pad() error 2024-06-20 06:46:15 -07:00
bnxt.h bnxt_en: Set TSO max segs on devices with limits 2024-06-20 06:46:08 -07:00
bnxt_coredump.c
bnxt_coredump.h
bnxt_dcb.c bnxt_en: Fix possible crash after creating sw mqprio TCs 2024-01-19 21:15:13 -08:00
bnxt_dcb.h eth: bnxt: fix warning for define in struct_group 2023-07-28 13:47:34 -07:00
bnxt_debugfs.c
bnxt_debugfs.h
bnxt_devlink.c bnxt_en: Optimize recovery path ULP locking in the driver 2024-05-02 07:27:21 -07:00
bnxt_devlink.h
bnxt_dim.c
bnxt_ethtool.c bnxt_en: Don't support offline self test when RoCE driver is loaded 2024-05-02 07:27:20 -07:00
bnxt_ethtool.h bnxt_en: Enhance ethtool ntuple support for ip flows besides TCP/UDP 2024-02-09 12:37:41 -08:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface to 1.10.3.44 2024-06-20 06:46:08 -07:00
bnxt_hwmon.c bnxt_en: Do not call sleeping hwmon_notify_event() from NAPI 2023-10-22 11:41:45 +01:00
bnxt_hwmon.h bnxt_en: Do not call sleeping hwmon_notify_event() from NAPI 2023-10-22 11:41:45 +01:00
bnxt_hwrm.c bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send() 2024-06-13 08:05:46 -07:00
bnxt_hwrm.h eth: bnxt: fix backward compatibility with older devices 2023-10-17 17:50:55 -07:00
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: Fix PTP firmware timeout parameter 2024-04-05 15:56:52 -07:00
bnxt_ptp.h bnxt_en: silence clang build warning 2024-05-10 18:16:35 -07:00
bnxt_sriov.c bnxt_en: Cap the size of HWRM_PORT_PHY_QCFG forwarded response 2024-06-13 07:50:16 -07:00
bnxt_sriov.h
bnxt_tc.c bnxt_en: flower: validate control flags 2024-04-24 19:57:19 -07:00
bnxt_tc.h
bnxt_ulp.c bnxt_en: Add a mutex to synchronize ULP operations 2024-05-02 07:27:20 -07:00
bnxt_ulp.h bnxt_en: Add a mutex to synchronize ULP operations 2024-05-02 07:27:20 -07:00
bnxt_vfr.c bnxt_en: Link representors to PCI device 2023-06-21 14:07:09 -07:00
bnxt_vfr.h bnxt_en: Allow to set switchdev mode without existing VFs 2023-04-13 11:04:51 +02:00
bnxt_xdp.c bnxt_en: Add XDP Metadata support 2024-04-04 09:13:19 -07:00
bnxt_xdp.h bnxt_en: Change bnxt_rx_xdp function prototype 2024-04-04 09:13:19 -07:00