From: Jakub Kicinski <kuba@kernel.org>
To: renmingshuai <renmingshuai@huawei.com>
Cc: <davem@davemloft.net>, <edumazet@google.com>, <pabeni@redhat.com>,
<idosch@nvidia.com>, <netdev@vger.kernel.org>, <yanan@huawei.com>,
<chenzhen126@huawei.com>, <liaichun@huawei.com>
Subject: Re: [PATCH] net/netlink: how to deal with the problem of exceeding the maximum reach of nlattr's nla_len
Date: Thu, 21 Mar 2024 07:30:45 -0700 [thread overview]
Message-ID: <20240321073045.3ee6127d@kernel.org> (raw)
In-Reply-To: <20240321141400.38639-1-renmingshuai@huawei.com>
On Thu, 21 Mar 2024 22:14:00 +0800 renmingshuai wrote:
> RTM_GETLINK for greater than about 220 VFs truncates IFLA_VFINFO_LIST
> due to the maximum reach of nlattr's nla_len being exceeded. As a result,
> the value of nla_len overflows in nla_nest_end(). According to [1],
> changing the type of nla_len is not possible, but how can we deal with this
> overflow problem? The nla_len is constantly set to the
> maximum value when it overflows? Or some better ways?
It's a known limitation of the legacy SRIOV VF API.
Use switchdev mode instead, please.
prev parent reply other threads:[~2024-03-21 14:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-21 14:14 [PATCH] net/netlink: how to deal with the problem of exceeding the maximum reach of nlattr's nla_len renmingshuai
2024-03-21 14:30 ` Jakub Kicinski [this message]
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=20240321073045.3ee6127d@kernel.org \
--to=kuba@kernel.org \
--cc=chenzhen126@huawei.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=idosch@nvidia.com \
--cc=liaichun@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=renmingshuai@huawei.com \
--cc=yanan@huawei.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).