]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fe47a6736c795e5cc3bb176fd370ec107ec2a85
tree30aa053fff7bd25d7d7c42ca91a2909e90013093
parent4186b3f76f10c7972e811543d3a78360ecf04ef2
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: 77ef2067ddb9f ("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