linux-stable/drivers/net/ethernet/broadcom/bnxt
Pavan Chebbi 499c993ca7 bnxt_en: Reset PTP tx_avail after possible firmware reset
[ Upstream commit faa12ca245 ]

It is possible that during error recovery and firmware reset,
there is a pending TX PTP packet waiting for the timestamp.
We need to reset this condition so that after recovery, the
tx_avail count for PTP is reset back to the initial value.
Otherwise, we may not accept any PTP TX timestamps after
recovery.

Fixes: 118612d519 ("bnxt_en: Add PTP clock APIs, ioctls, and ethtool methods")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:19:29 +02:00
..
Makefile
bnxt.c bnxt_en: Reset PTP tx_avail after possible firmware reset 2024-04-17 11:19:29 +02:00
bnxt.h bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic 2023-12-20 17:01:46 +01:00
bnxt_coredump.c
bnxt_coredump.h
bnxt_dcb.c bnxt_en: Fix W=stringop-overflow warning in bnxt_dcb.c 2023-08-08 15:07:18 -07: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: Fix wrong return value check in bnxt_close_nic() 2023-12-20 17:01:46 +01:00
bnxt_devlink.h
bnxt_dim.c
bnxt_ethtool.c bnxt_en: Fix wrong return value check in bnxt_close_nic() 2023-12-20 17:01:46 +01:00
bnxt_ethtool.h
bnxt_fw_hdr.h
bnxt_hsi.h v6.6 merge window RDMA pull request 2023-09-01 16:49:33 -07:00
bnxt_hwrm.c
bnxt_hwrm.h
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: Fix wrong return value check in bnxt_close_nic() 2023-12-20 17:01:46 +01:00
bnxt_ptp.h bnxt_en: Add a non-real time mode to access NIC clock 2022-11-08 12:39:02 +01:00
bnxt_sriov.c bnxt_en: Allow to set switchdev mode without existing VFs 2023-04-13 11:04:51 +02:00
bnxt_sriov.h
bnxt_tc.c net: bnxt: fix a potential use-after-free in bnxt_init_tc 2023-12-13 18:45:06 +01:00
bnxt_tc.h
bnxt_ulp.c bnxt_en: Fix error recovery for RoCE ulp client 2024-04-17 11:19:29 +02:00
bnxt_ulp.h bnxt_en: Share the bar0 address with the RoCE driver 2023-07-21 16:15:32 -03: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: do not map packet buffers twice 2024-01-01 12:42:32 +00:00
bnxt_xdp.h bnxt: don't handle XDP in netpoll 2023-07-31 14:28:39 -07:00