summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ibm
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>2018-11-21 16:32:10 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-22 11:40:30 -0800
commit6d0f60b0f8588fd4380ea5df9601e12fddd55ce2 (patch)
tree333aeb0e376635b4c54c57b70908191e8a287af6 /drivers/net/ethernet/ibm
parent0211dda68a4f6531923a2f72d8e8959207f59fba (diff)
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: 05c773f52b96 ("net: thunderx: Add basic XDP support") Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
0 files changed, 0 insertions, 0 deletions