diff options
| author | Amit Cohen <[email protected]> | 2024-06-18 11:34:46 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-06-20 00:38:11 +0000 |
| commit | d94ae6415becdf437d58e60d1f153af39dddb247 (patch) | |
| tree | e61b2ac5d84e4c508b502e28de081708a27cd100 /net/unix/af_unix.c | |
| parent | mlxsw: pci: Do not store SKB for RDQ elements (diff) | |
| download | kernel-d94ae6415becdf437d58e60d1f153af39dddb247.tar.gz kernel-d94ae6415becdf437d58e60d1f153af39dddb247.zip | |
mlxsw: pci: Use napi_consume_skb() to free SKB as part of Tx completion
Currently, as part of Tx completion, the driver calls dev_kfree_skb_any()
to free the SKB. For this flow, the correct function is napi_consume_skb().
This function and dev_consume_skb_any() were added to be used for consumed
SKBs, which were not dropped, so the skb:kfree_skb tracepoint is not
triggered, and we can get better diagnostics about dropped packets.
Signed-off-by: Amit Cohen <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/a9f9f3dc884c0d1be4bd4c9d72030c88c7ac004f.1718709196.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
