From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Ivan Malov" <ivan.malov@arknetworks.am>,
"Stephen Hemminger" <stephen@networkplumber.org>
Cc: <dev@dpdk.org>, "Thomas Monjalon" <thomas@monjalon.net>,
"Andrew Rybchenko" <andrew.rybchenko@oktetlabs.ru>,
"Konstantin Ananyev" <konstantin.ananyev@huawei.com>
Subject: RE: [PATCH] ethdev: Reject conflicting TX offloads configuration
Date: Sun, 3 Aug 2025 12:51:59 +0200 [thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9FDE2@smartserver.smartshare.dk> (raw)
In-Reply-To: <66e365f2-8398-43b2-58a6-cda29bae08e1@arknetworks.am>
> From: Ivan Malov [mailto:ivan.malov@arknetworks.am]
> Sent: Saturday, 2 August 2025 23.34
>
> Hi,
>
> On Sat, 2 Aug 2025, Stephen Hemminger wrote:
>
> > On Thu, 31 Jul 2025 09:07:31 +0000
> > Morten Brørup <mb@smartsharesystems.com> wrote:
> >
> >> + RTE_ETHDEV_LOG_LINE(DEBUG,
> >> + "Ethdev port_id=%d tx_queue_id=%d, Tx offload %s
> potential conflict with per-port Tx offload %s, "
> >> + "runtime support depends on the driver",
> >
> > Shorten the message, and get it on one line.
> > When a message is so long it won't fit on one line, it is too verbose.
>
> I am not an expert in naming, but on the premise that 'ethdev' is
> already
> printed by 'RTE_ETHDEV_LOG_LINE', perhaps consider this variant:
>
> "id=%d txq=%d offload clash %s vs dev %s: PMD to decide"
>
> Thank you.
Ivan's suggestion is good, but this file has plenty of long (and even multi-line) log messages, e.g. [1]:
if ((local_conf.offloads & dev_info.tx_queue_offload_capa) !=
local_conf.offloads) {
RTE_ETHDEV_LOG_LINE(ERR,
"Ethdev port_id=%d tx_queue_id=%d, new added offloads 0x%"PRIx64" must be "
"within per-queue offload capabilities 0x%"PRIx64" in %s()",
port_id, tx_queue_id, local_conf.offloads,
dev_info.tx_queue_offload_capa,
__func__);
return -EINVAL;
}
[1]: https://elixir.bootlin.com/dpdk/v25.07/source/lib/ethdev/rte_ethdev.c#L2703
Which do you prefer:
a) Follow the local coding style for log messages, or
b) Follow our general coding style, and log as Ivan suggested?
next prev parent reply other threads:[~2025-08-03 10:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-31 9:07 Morten Brørup
2025-07-31 9:24 ` Bruce Richardson
2025-07-31 10:07 ` Andrew Rybchenko
2025-07-31 9:27 ` Ivan Malov
2025-07-31 9:34 ` Morten Brørup
2025-07-31 11:32 ` Konstantin Ananyev
2025-07-31 12:56 ` [PATCH v2 1/3] testpmd: Do not enable mbuf fast release TX offload by default Morten Brørup
2025-07-31 12:56 ` [PATCH v2 2/3] ethdev: Improve descriptions of RX and TX offloads Morten Brørup
2025-07-31 12:56 ` [PATCH v2 3/3] ethdev: Reject conflicting TX offloads configuration Morten Brørup
2025-08-01 1:09 ` zhoumin
2025-08-02 20:53 ` [PATCH] " Stephen Hemminger
2025-08-02 21:33 ` Ivan Malov
2025-08-03 10:51 ` Morten Brørup [this message]
2025-08-03 15:56 ` Stephen Hemminger
2025-08-03 19:42 ` [PATCH v3 1/3] testpmd: Do not enable mbuf fast release TX offload by default Morten Brørup
2025-08-03 19:42 ` [PATCH v3 2/3] ethdev: Improve descriptions of RX and TX offloads Morten Brørup
2025-08-03 19:42 ` [PATCH v3 3/3] ethdev: Reject conflicting TX offloads configuration Morten Brørup
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=98CBD80474FA8B44BF855DF32C47DC35E9FDE2@smartserver.smartshare.dk \
--to=mb@smartsharesystems.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=dev@dpdk.org \
--cc=ivan.malov@arknetworks.am \
--cc=konstantin.ananyev@huawei.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
/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).