net: socionext: fix xdp_result initialization in netsec_process_rx
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 25 Jan 2020 11:48:51 +0000 (12:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:05:42 +0000 (11:05 +0100)
commit02758cb6dac31a2b4bd9e535cffbe718acd46404
tree30aa053fff7bd25d7d7c42ca91a2909e90013093
parentb5e82e3c89c78ee0407ea8e8087af5519b6c7bae
net: socionext: fix xdp_result initialization in netsec_process_rx

Fix xdp_result initialization in netsec_process_rx in order to not
increase rx counters if there is no bpf program attached to the xdp hook
and napi_gro_receive returns GRO_DROP

Fixes: ba2b232108d3c ("net: netsec: add XDP support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c