Explorar el Código

rxrpc: Fix the trace for terminal ACK (re)transmission

Fix the trace for terminal ACK (re)transmission to put in the right
parameters.

Signed-off-by: David Howells <dhowells@redhat.com>
David Howells hace 7 años
padre
commit
f3f8337c9e
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      net/rxrpc/conn_event.c

+ 4 - 2
net/rxrpc/conn_event.c

@@ -129,8 +129,10 @@ static void rxrpc_conn_retransmit_call(struct rxrpc_connection *conn,
 		_proto("Tx ABORT %%%u { %d } [re]", serial, conn->local_abort);
 		_proto("Tx ABORT %%%u { %d } [re]", serial, conn->local_abort);
 		break;
 		break;
 	case RXRPC_PACKET_TYPE_ACK:
 	case RXRPC_PACKET_TYPE_ACK:
-		trace_rxrpc_tx_ack(NULL, serial, chan->last_seq, 0,
-				   RXRPC_ACK_DUPLICATE, 0);
+		trace_rxrpc_tx_ack(NULL, serial,
+				   ntohl(pkt.ack.firstPacket),
+				   ntohl(pkt.ack.serial),
+				   pkt.ack.reason, 0);
 		_proto("Tx ACK %%%u [re]", serial);
 		_proto("Tx ACK %%%u [re]", serial);
 		break;
 		break;
 	}
 	}