Skip to content
Commit 1d5a4742 authored by Martin Habets's avatar Martin Habets Committed by Jakub Kicinski
Browse files

sfc: The RX page_ring is optional

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>
parent 6f89ecf1
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