linux/drivers/net/ethernet/cavium/thunder
Dean Nelson b3e2080694 thunderx: enable page recycling for non-XDP case
Commit 773225388d ("net: thunderx: Optimize page recycling for XDP")
added code to nicvf_alloc_page() that inadvertently disables receive buffer
page recycling for the non-XDP case by always NULL'ng the page pointer.

This patch corrects two if-conditionals to allow for the recycling of non-XDP
mode pages by only setting the page pointer to NULL when the page is not ready
for recycling.

Fixes: 773225388d ("net: thunderx: Optimize page recycling for XDP")
Signed-off-by: Dean Nelson <dnelson@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-27 22:52:28 -07:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nic_main.c net: thunderx: remove link change polling code and info from nicpf 2019-02-22 11:43:45 -08:00
nic_reg.h net: thunderx: add timestamping support 2018-01-16 14:31:14 -05:00
nic.h net: thunderx: move link state polling function to VF 2019-02-22 11:43:45 -08:00
nicvf_ethtool.c net: thunderx: mark expected switch fall-through 2018-08-07 17:54:19 -07:00
nicvf_main.c net: thunder: fix a potential NULL pointer dereference 2019-03-11 13:34:31 -07:00
nicvf_queues.c thunderx: enable page recycling for non-XDP case 2019-03-27 22:52:28 -07:00
nicvf_queues.h Revert "net: thunderx: Add support for xdp redirect" 2018-02-14 14:23:39 -05:00
q_struct.h net: thunderx: Optimize RBDR descriptor handling 2017-05-02 15:41:20 -04:00
thunder_bgx.c net: thunderx: correct typo in macro name 2019-02-22 11:43:44 -08:00
thunder_bgx.h net: thunderx: correct typo in macro name 2019-02-22 11:43:44 -08:00
thunder_xcv.c net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module name 2018-01-29 12:22:06 -05:00