diff options
author | Michael Chan <[email protected]> | 2023-12-07 16:16:58 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-08 17:20:26 -0800 |
commit | c13e268c0768659cdaae4bfe2fb24860bcc8ddb4 (patch) | |
tree | 130b5afbf9bddd0e7b9b8009f8e3fc32adb25c8f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | bd6781c18cb5b5e5d8c5873fa9a51668e89ec76e (diff) |
bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic
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 <[email protected]>
Reviewed-by: Pavan Chebbi <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions