Skip to content
Commit f7edb6b9 authored by Martin Habets's avatar Martin Habets Committed by Greg Kroah-Hartman
Browse files

sfc: The RX page_ring is optional

commit 1d5a4742 upstream.

The RX page_ring is an optional feature that improves
performance. When allocation fails the driver can still
function, but possibly with a lower bandwidth.
Guard against dereferencing a NULL page_ring.

Fixes: 2768935a

 ("sfc: reuse pages to avoid DMA mapping/unmapping costs")
Signed-off-by: default avatarMartin Habets <habetsm.xilinx@gmail.com>
Reported-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/164111288276.5798.10330502993729113868.stgit@palantir17.mph.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2b3f34da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment