linux/drivers/net/ethernet/cavium
Lorenzo Bianconi 6d0f60b0f8 net: thunderx: set xdp_prog to NULL if bpf_prog_add fails
Set xdp_prog pointer to NULL if bpf_prog_add fails since that routine
reports the error code instead of NULL in case of failure and xdp_prog
pointer value is used in the driver to verify if XDP is currently
enabled.
Moreover report the error code to userspace if nicvf_xdp_setup fails

Fixes: 05c773f52b ("net: thunderx: Add basic XDP support")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-22 11:40:30 -08:00
..
common net: cavium: use module_pci_driver to simplify the code 2018-03-29 14:36:33 -04:00
liquidio mlx5-updates-2018-10-03 2018-10-04 09:48:37 -07:00
octeon net: cavium: fix return type of ndo_start_xmit function 2018-09-18 20:02:29 -07:00
thunder net: thunderx: set xdp_prog to NULL if bpf_prog_add fails 2018-11-22 11:40:30 -08:00
Kconfig Merge ra.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux 2018-07-20 21:17:12 -07:00
Makefile net: add support for Cavium PTP coprocessor 2018-01-16 14:31:14 -05:00