From: Bruce Richardson <bruce.richardson@intel.com>
To: David Marchand <david.marchand@redhat.com>
Cc: <dev@dpdk.org>, Yu Jiang <yux.jiang@intel.com>, <stable@dpdk.org>
Subject: Re: [PATCH v2] eal/unix: support ZSTD compression for firmware
Date: Mon, 13 May 2024 12:37:31 +0100 [thread overview]
Message-ID: <ZkH7ezm_qZ0QqXUd@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20240513111204.3120460-1-david.marchand@redhat.com>
On Mon, May 13, 2024 at 01:12:04PM +0200, David Marchand wrote:
> Ubuntu 24.04 started to compress firmware files with ZSTD compression.
>
> Bugzilla ID: 1437
> Cc: stable@dpdk.org
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> Chances since v1:
> - fixed link issue when libarchive is not available,
> - Cc'd stable@dpdk.org,
>
> ---
> lib/eal/unix/eal_firmware.c | 24 ++++++++++++++++++------
> 1 file changed, 18 insertions(+), 6 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Verified that port initializes ok with zstd compressed firmware, and we get
suitable error if libarchive is not installed.
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
One minor suggestion below.
> diff --git a/lib/eal/unix/eal_firmware.c b/lib/eal/unix/eal_firmware.c
> index 1d47e879c8..31de027598 100644
> --- a/lib/eal/unix/eal_firmware.c
> +++ b/lib/eal/unix/eal_firmware.c
> @@ -16,6 +16,8 @@
> #include "eal_firmware.h"
> #include "eal_private.h"
>
> +static const char * const compression_algorithms[] = { "xz", "zst" };
Very minor nit: these are the suffixes used to find the files, more than
they are the compression algorithms. There I'd suggest renaming to
"compression_suffixes".
[Perhaps just fix on apply if taking this suggestion]
> +
> #ifdef RTE_HAS_LIBARCHIVE
>
> struct firmware_read_ctx {
<snip>
next prev parent reply other threads:[~2024-05-13 11:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240508095214.2541115-1-david.marchand@redhat.com>
2024-05-13 11:12 ` David Marchand
2024-05-13 11:37 ` Bruce Richardson [this message]
2024-05-13 11:47 ` David Marchand
2024-05-17 17:01 ` David Marchand
2024-07-03 7:12 ` Xueming Li
2024-07-03 7:27 ` David Marchand
2024-07-03 9:03 ` Xueming Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZkH7ezm_qZ0QqXUd@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
--cc=yux.jiang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).