diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-02-06 20:17:24 -0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-02-12 22:05:10 -0500 |
| commit | 92186c1455a2d3563dcea58a6f4729d518b5be50 (patch) | |
| tree | 810616f0a08ed6943308dd0fd2d85be8ba53dc7e /drivers/scsi/iscsi_tcp.h | |
| parent | 035b9fa023fb4645e9cf104e0f1b4641b1938d08 (diff) | |
| download | linux-92186c1455a2d3563dcea58a6f4729d518b5be50.tar.gz linux-92186c1455a2d3563dcea58a6f4729d518b5be50.tar.bz2 linux-92186c1455a2d3563dcea58a6f4729d518b5be50.zip | |
scsi: iscsi_tcp: Switch to using the crc32c library
Now that the crc32c() library function directly takes advantage of
architecture-specific optimizations, it is unnecessary to go through the
crypto API. Just use crc32c(). This is much simpler, and it improves
performance due to eliminating the crypto API overhead.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20250207041724.70733-1-ebiggers@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
| -rw-r--r-- | drivers/scsi/iscsi_tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h index 89a6fc552f0b..c3e5d9fa6add 100644 --- a/drivers/scsi/iscsi_tcp.h +++ b/drivers/scsi/iscsi_tcp.h @@ -41,8 +41,8 @@ struct iscsi_sw_tcp_conn { void (*old_write_space)(struct sock *); /* data and header digests */ - struct ahash_request *tx_hash; /* CRC32C (Tx) */ - struct ahash_request *rx_hash; /* CRC32C (Rx) */ + u32 tx_crc; /* CRC32C (Tx) */ + u32 rx_crc; /* CRC32C (Rx) */ /* MIB custom statistics */ uint32_t sendpage_failures_cnt; |
