Commit ff0d601
Ken Cox
bnxt_en: Restore PTP tx_avail count in case of skb_pad() error
JIRA: https://issues.redhat.com/browse/RHEL-19811
JIRA: https://issues.redhat.com/browse/RHEL-23120
JIRA: https://issues.redhat.com/browse/RHEL-25505
commit 1e79621
Author: Pavan Chebbi <pavan.chebbi@broadcom.com>
Date: Tue Jun 18 14:53:13 2024 -0700
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: 83bb623 ("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>
Signed-off-by: Ken Cox <jkc@redhat.com>1 parent 8e66b35 commit ff0d601
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 681 | | |
685 | 682 | | |
686 | 683 | | |
| |||
702 | 699 | | |
703 | 700 | | |
704 | 701 | | |
| 702 | + | |
| 703 | + | |
705 | 704 | | |
706 | 705 | | |
707 | 706 | | |
| |||
0 commit comments