summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn@kernel.org>2026-09-18 13:46:40 +0200
committerJakub Kicinski <kuba@kernel.org>2026-09-22 18:53:11 -0700
commit0160953d8eec75c3c55562158c46442ff1fd410b (patch)
treece18449e33555debd6ea458a1b985a0fe7bbcae9 /tools/lib/python/kdoc/python_version.py
parentf764634137842b98440931b63b046a0c685c9163 (diff)
downloadlinux-next-0160953d8eec75c3c55562158c46442ff1fd410b.tar.gz
linux-next-0160953d8eec75c3c55562158c46442ff1fd410b.zip
eth: fbnic: Avoid rounding zero ring sizes
roundup_pow_of_two() is undefined for zero. ethtool permits a zero ring size to reach the driver, where the minimum-size check should reject it. Leave zero unchanged while rounding nonzero ring sizes. The minimum-size check then rejects zero deterministically without changing the established behavior for other values. Fixes: 6cbf18a05c06 ("eth: fbnic: support ring size configuration") Reported-by: Sashiko <netdev-bot+sashiko@kernel.org> Link: https://lore.kernel.org/netdev/178971206933.22033.236948278674126701@kernel.org/ Suggested-by: Alexander Duyck <alexanderduyck@fb.com> Signed-off-by: Björn Töpel <bjorn@kernel.org> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260918114641.1281172-1-bjorn@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions