2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-24 12:11:33 +00:00

Added RX tracing as well.

This commit is contained in:
Michael Brown 2006-08-16 00:15:40 +00:00
parent cf2178f885
commit f1e1dfae3d

View File

@ -643,6 +643,11 @@ static void iscsi_rx_discard ( struct iscsi_session *iscsi __unused,
static void iscsi_rx_bhs ( struct iscsi_session *iscsi, void *data,
size_t len, size_t remaining __unused ) {
memcpy ( &iscsi->rx_bhs.bytes[iscsi->rx_offset], data, len );
if ( ( iscsi->rx_offset + len ) >= sizeof ( iscsi->rx_bhs ) ) {
DBG ( "iSCSI %p received PDU opcode %#x len %#lx\n",
iscsi, iscsi->rx_bhs.common.opcode,
ISCSI_DATA_LEN ( iscsi->rx_bhs.common.lengths ) );
}
}
/**