]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: limit minimum TX ring size
authorRobert Hancock <robert.hancock@calian.com>
Tue, 18 Jan 2022 21:41:28 +0000 (15:41 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jan 2022 11:29:14 +0000 (11:29 +0000)
commitae4d440b02e697ca25ea9426a559d8500d554a8e
treee41b085191432e971b657661670f315c09554ecb
parent7f4e3371b7e8ddd48d6b0e6be8d529276a31a638
net: axienet: limit minimum TX ring size

The driver will not work properly if the TX ring size is set to below
MAX_SKB_FRAGS + 1 since it needs to hold at least one full maximally
fragmented packet in the TX ring. Limit setting the ring size to below
this value.

Fixes: b5382bd0f99a3 ("net: axienet: Make RX/TX ring sizes configurable")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c