diff options
| author | Pavan Chebbi <[email protected]> | 2024-06-18 14:53:13 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-06-20 06:46:15 -0700 |
| commit | 1e7962114c10957fe4d10a15eb714578a394e90b (patch) | |
| tree | cc661dc71a2e522333f4f6b466264f248d33c997 /drivers/usb/cdns3/cdns3-debug.h | |
| parent | b7bfcb4c7ce44fd0070ce8bccbc91c56341f05c1 (diff) | |
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: 83bb623c968e ("bnxt_en: Transmit and retrieve packet timestamps")
Reviewed-by: Andy Gospodarek <[email protected]>
Signed-off-by: Pavan Chebbi <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions