]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: add parameter check for tx_copybreak and tx_spare_buf_size
authorJijie Shao <shaojijie@huawei.com>
Fri, 15 Aug 2025 10:04:13 +0000 (18:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 01:11:15 +0000 (18:11 -0700)
commite16e973c576f89be26837778a5566ab9c4231852
treefee9220fe1f8bed438e6b9d60958e252fd6c2e4b
parent3a752e67800106a5c42d802d67e06c60aa71d07b
net: hns3: add parameter check for tx_copybreak and tx_spare_buf_size

Since the driver always enables tx bounce buffer,
there are minimum values for `copybreak` and `tx_spare_buf_size`.

This patch will check and reject configurations
with values smaller than these minimums.

Closes: https://lore.kernel.org/all/20250723072900.GV2459@horms.kernel.org/
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20250815100414.949752-2-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c