提交 f20fe3ff 编写于 作者: D David Howells

rxrpc: Show consumed and freed packets as non-dropped in dropwatch

Set a reason when freeing a packet that has been consumed such that
dropwatch doesn't complain that it has been dropped.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
上级 e7f40f4a
...@@ -63,7 +63,7 @@ void rxrpc_free_skb(struct sk_buff *skb, enum rxrpc_skb_trace why) ...@@ -63,7 +63,7 @@ void rxrpc_free_skb(struct sk_buff *skb, enum rxrpc_skb_trace why)
if (skb) { if (skb) {
int n = atomic_dec_return(select_skb_count(skb)); int n = atomic_dec_return(select_skb_count(skb));
trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why); trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why);
kfree_skb(skb); kfree_skb_reason(skb, SKB_CONSUMED);
} }
} }
...@@ -78,6 +78,6 @@ void rxrpc_purge_queue(struct sk_buff_head *list) ...@@ -78,6 +78,6 @@ void rxrpc_purge_queue(struct sk_buff_head *list)
int n = atomic_dec_return(select_skb_count(skb)); int n = atomic_dec_return(select_skb_count(skb));
trace_rxrpc_skb(skb, refcount_read(&skb->users), n, trace_rxrpc_skb(skb, refcount_read(&skb->users), n,
rxrpc_skb_put_purge); rxrpc_skb_put_purge);
kfree_skb(skb); kfree_skb_reason(skb, SKB_CONSUMED);
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册