From: "Renyong Wan" <wanry@yunsilicon.com>
To: <dev@dpdk.org>
Cc: "Stephen Hemminger" <stephen@networkplumber.org>,
<nana@yunsilicon.com>, <qianr@yunsilicon.com>,
<zhangxx@yunsilicon.com>, <xudw@yunsilicon.com>
Subject: [PATCH v5 0/4] net/xsc: fix issues reported by GCC analyzer
Date: Sun, 22 Nov 2026 22:22:36 +0800 [thread overview]
Message-ID: <1795357356.312312@yunsilicon.com> (raw)
v5:
- split the second patch in two, one fix per commit, as suggested by Thomas
- no code change, the resulting tree is the same as v4
v4:
- free the jumbo buffer only when the last representor stops the device, it
is shared by every port and their Rx queues still point at it
v3:
- free the jumbo buffer in xsc_dev_close(), the device removal path does not
go through xsc_dev_uninit()
- drop the redundant parentheses reported by checkpatch, no functional
change
v2:
- address the AI review of v1: allocate the jumbo buffer once per device,
fail the queue setup when there is no IOVA, and free it on device close
- fix the leak in xsc_dev_init() and the unchecked rte_malloc_socket()
- rename the jumbo buffer fields, they held the opposite of what their
names say
Renyong Wan (4):
net/xsc: fix jumbo buffer allocation and leak
net/xsc: fix leak on device init failure
net/xsc: check Tx queue allocation result
net/xsc: rename jumbo buffer fields
drivers/net/xsc/xsc_dev.c | 17 ++++++++++--
drivers/net/xsc/xsc_dev.h | 4 +--
drivers/net/xsc/xsc_ethdev.c | 6 ++++
drivers/net/xsc/xsc_rx.c | 53 ++++++++++++++++++++----------------
4 files changed, 51 insertions(+), 29 deletions(-)
next reply other threads:[~2026-11-22 14:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 14:22 Renyong Wan [this message]
2026-11-22 14:22 ` [PATCH v5 1/4] net/xsc: fix jumbo buffer allocation and leak Renyong Wan
2026-11-22 14:22 ` [PATCH v5 2/4] net/xsc: fix leak on device init failure Renyong Wan
2026-11-22 14:22 ` [PATCH v5 3/4] net/xsc: check Tx queue allocation result Renyong Wan
2026-11-22 14:22 ` [PATCH v5 4/4] net/xsc: rename jumbo buffer fields Renyong Wan
2026-11-22 17:47 ` [PATCH v5 0/4] net/xsc: fix issues reported by GCC analyzer Stephen Hemminger
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=1795357356.312312@yunsilicon.com \
--to=wanry@yunsilicon.com \
--cc=dev@dpdk.org \
--cc=nana@yunsilicon.com \
--cc=qianr@yunsilicon.com \
--cc=stephen@networkplumber.org \
--cc=xudw@yunsilicon.com \
--cc=zhangxx@yunsilicon.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.