linux-stable/drivers/net/ethernet/broadcom/bnxt
Pavan Chebbi 3bc910c750 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:23:29 +02:00
..
Makefile
bnxt.c bnxt_en: Reset PTP tx_avail after possible firmware reset 2024-04-17 11:23:29 +02:00
bnxt.h bnxt_en: Fix possible crash after creating sw mqprio TCs 2024-01-19 21:15:13 -08: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
bnxt_debugfs.c
bnxt_debugfs.h
bnxt_devlink.c
bnxt_devlink.h
bnxt_dim.c
bnxt_ethtool.c bnxt_en: Fix possible crash after creating sw mqprio TCs 2024-01-19 21:15:13 -08:00
bnxt_ethtool.h
bnxt_fw_hdr.h
bnxt_hsi.h
bnxt_hwmon.c
bnxt_hwmon.h
bnxt_hwrm.c
bnxt_hwrm.h
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: Make PTP timestamp HWRM more silent 2024-01-26 14:06:21 -08:00
bnxt_ptp.h
bnxt_sriov.c
bnxt_sriov.h
bnxt_tc.c
bnxt_tc.h
bnxt_ulp.c bnxt_en: Fix error recovery for RoCE ulp client 2024-04-17 11:23:29 +02:00
bnxt_ulp.h
bnxt_vfr.c
bnxt_vfr.h
bnxt_xdp.c bnxt_en: Fix possible crash after creating sw mqprio TCs 2024-01-19 21:15:13 -08:00
bnxt_xdp.h