diff options
author | Michael Chan | 2023-12-07 16:16:58 -0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-12-20 17:00:16 +0100 |
commit | 525904a157914cb0490ee48b3aed3b0ee39702e9 (patch) | |
tree | ccd632988c99de7a09a52e117ec56322b2a46575 /drivers/dma-buf/heaps | |
parent | ac6125174190b714a9db1d4fec36d48f84a2e66a (diff) |
bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic
[ Upstream commit c13e268c0768659cdaae4bfe2fb24860bcc8ddb4 ]
When the chip is configured to timestamp all receive packets, the
timestamp in the RX completion is only valid if the metadata
present flag is not set for packets received on the wire. In
addition, internal loopback packets will never have a valid timestamp
and the timestamp field will always be zero. We must exclude
any 0 value in the timestamp field because there is no way to
determine if it is a loopback packet or not.
Add a new function bnxt_rx_ts_valid() to check for all timestamp
valid conditions.
Fixes: 66ed81dcedc6 ("bnxt_en: Enable packet timestamping for all RX packets")
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231208001658.14230-5-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/dma-buf/heaps')
0 files changed, 0 insertions, 0 deletions