[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240906185546.123b6d65@kernel.org>
Date: Fri, 6 Sep 2024 18:55:46 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Yan Zhen <yanzhen@...o.com>
Cc: marcin.s.wojtas@...il.com, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
openkernel.kernel@...o.com, horms@...nel.org, David.Laight@...lab.com
Subject: Re: [PATCH net-next v1] net: mvneta: Avoid the misuse of the '_t'
variants
On Thu, 5 Sep 2024 14:36:45 +0800 Yan Zhen wrote:
> In this case if someone tries to set the tx_pending to 65536(0x10000),
> after forcing it to convert to u16, it becomes 0x0000, they will get
> the minimum supported size and not the maximum.
Core validates against tx_max_pending before calling the driver.
--
pw-bot: reject
Powered by blists - more mailing lists