net/sfc: check for maximum number of Rx scatter buffers
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Tue, 13 Oct 2020 13:45:24 +0000 (14:45 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:17 +0000 (19:48 +0200)
commitd41a6268d57a2ebfa52f86cf6f7ddbabff1f05d8
tree7bb7a5b762de1ec1914cb5e3f614324b5da0bc59
parentabd9dc47e0826bde5f57f73873012c287169c762
net/sfc: check for maximum number of Rx scatter buffers

Update generic code to check that MTU and Rx buffer sizes
do not result in more Rx scatter segments than NIC can make.

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c
drivers/net/sfc/sfc_rx.c
drivers/net/sfc/sfc_rx.h