rxrpc: Use the tx-phase skb flag to simplify tracing
Use the previously-added transmit-phase skbuff private flag to simplify the socket buffer tracing a bit. Which phase the skbuff comes from can now be divined from the skb rather than having to be guessed from the call state. We can also reduce the number of rxrpc_skb_trace values by eliminating the difference between Tx and Rx in the symbols. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -472,7 +472,7 @@ void rxrpc_process_connection(struct work_struct *work)
|
||||
/* go through the conn-level event packets, releasing the ref on this
|
||||
* connection that each one has when we've finished with it */
|
||||
while ((skb = skb_dequeue(&conn->rx_queue))) {
|
||||
rxrpc_see_skb(skb, rxrpc_skb_rx_seen);
|
||||
rxrpc_see_skb(skb, rxrpc_skb_seen);
|
||||
ret = rxrpc_process_event(conn, skb, &abort_code);
|
||||
switch (ret) {
|
||||
case -EPROTO:
|
||||
@@ -484,7 +484,7 @@ void rxrpc_process_connection(struct work_struct *work)
|
||||
goto requeue_and_leave;
|
||||
case -ECONNABORTED:
|
||||
default:
|
||||
rxrpc_free_skb(skb, rxrpc_skb_rx_freed);
|
||||
rxrpc_free_skb(skb, rxrpc_skb_freed);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -501,6 +501,6 @@ requeue_and_leave:
|
||||
protocol_error:
|
||||
if (rxrpc_abort_connection(conn, ret, abort_code) < 0)
|
||||
goto requeue_and_leave;
|
||||
rxrpc_free_skb(skb, rxrpc_skb_rx_freed);
|
||||
rxrpc_free_skb(skb, rxrpc_skb_freed);
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user