]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: Drop useless code related to ethtool rx-copybreak
authorFurong Xu <0x1207@gmail.com>
Wed, 18 Dec 2024 08:34:07 +0000 (16:34 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 03:14:01 +0000 (19:14 -0800)
commit5c98e89d96ecbf0e4ed38a20c46727c0ed2c112b
tree7294fe92ca607ea227633f7a734d08355cb0bda0
parentf6038d913b13b41dcaf10ff2a89f76d7ffac9edc
net: stmmac: Drop useless code related to ethtool rx-copybreak

After commit 2af6106ae949 ("net: stmmac: Introducing support for Page
Pool"), the driver always copies frames to get a better performance,
zero-copy for RX frames is no more, then these code turned to be
useless and users of ethtool may get confused about the unhandled
rx-copybreak parameter.

This patch mostly reverts
commit 22ad38381547 ("stmmac: do not perform zero-copy for rx frames")

Signed-off-by: Furong Xu <0x1207@gmail.com>
Link: https://patch.msgid.link/20241218083407.390509-1-0x1207@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c