Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Add Qatzstd to Release-1.21-intel #262

Merged
merged 22 commits into from
Mar 4, 2024
Prev Previous commit
Next Next commit
use operator instead if
Signed-off-by: giantcroc <changran.wang@intel.com>
  • Loading branch information
giantcroc committed Feb 29, 2024
commit 4a05506624e3b847ab89f44e4954dddf41714ff7
12 changes: 3 additions & 9 deletions contrib/qat/compression/qatzstd/compressor/source/config.cc
Original file line number Diff line number Diff line change
@@ -55,15 +55,9 @@ void* QatzstdCompressorFactory::QatzstdThreadLocal::GetQATSession() {
}

Envoy::Compression::Compressor::CompressorPtr QatzstdCompressorFactory::createCompressor() {
if (enable_qat_zstd_) {
return std::make_unique<QatzstdCompressorImpl>(
compression_level_, enable_checksum_, strategy_, chunk_size_, enable_qat_zstd_,
qat_zstd_fallback_threshold_, tls_slot_->get()->GetQATSession());
} else {
return std::make_unique<QatzstdCompressorImpl>(compression_level_, enable_checksum_, strategy_,
chunk_size_, enable_qat_zstd_,
qat_zstd_fallback_threshold_, nullptr);
}
return std::make_unique<QatzstdCompressorImpl>(
compression_level_, enable_checksum_, strategy_, chunk_size_, enable_qat_zstd_,
qat_zstd_fallback_threshold_, enable_qat_zstd_ ? tls_slot_->get()->GetQATSession() : nullptr);
}

Envoy::Compression::Compressor::CompressorFactoryPtr