bnxt_en: improve TX timestamping FIFO configuration
authorVadim Fedorenko <vadfed@meta.com>
Thu, 24 Apr 2025 12:55:47 +0000 (05:55 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Apr 2025 01:47:16 +0000 (18:47 -0700)
commit8f7ae5a85137b913cb97e2d24409d36548d0bab1
treea13a6a5b217c312bacc909d5d3b04db05fc45fbd
parent8548c84c004be3da4ffbe35ed0589041a4050c03
bnxt_en: improve TX timestamping FIFO configuration

Reconfiguration of netdev may trigger close/open procedure which can
break FIFO status by adjusting the amount of empty slots for TX
timestamps. But it is not really needed because timestamps for the
packets sent over the wire still can be retrieved. On the other side,
during netdev close procedure any skbs waiting for TX timestamps can be
leaked because there is no cleaning procedure called. Free skbs waiting
for TX timestamps when closing netdev.

Fixes: 8aa2a79e9b95 ("bnxt_en: Increase the max total outstanding PTP TX packets to 4")
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Link: https://patch.msgid.link/20250424125547.460632-1-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h