mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
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: ba2b232108
("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>
This commit is contained in:
parent
b5e82e3c89
commit
02758cb6da
1 changed files with 1 additions and 1 deletions
|
@ -948,8 +948,8 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget)
|
||||||
struct netsec_de *de = dring->vaddr + (DESC_SZ * idx);
|
struct netsec_de *de = dring->vaddr + (DESC_SZ * idx);
|
||||||
struct netsec_desc *desc = &dring->desc[idx];
|
struct netsec_desc *desc = &dring->desc[idx];
|
||||||
struct page *page = virt_to_page(desc->addr);
|
struct page *page = virt_to_page(desc->addr);
|
||||||
|
u32 xdp_result = NETSEC_XDP_PASS;
|
||||||
struct sk_buff *skb = NULL;
|
struct sk_buff *skb = NULL;
|
||||||
u32 xdp_result = XDP_PASS;
|
|
||||||
u16 pkt_len, desc_len;
|
u16 pkt_len, desc_len;
|
||||||
dma_addr_t dma_handle;
|
dma_addr_t dma_handle;
|
||||||
struct xdp_buff xdp;
|
struct xdp_buff xdp;
|
||||||
|
|
Loading…
Reference in a new issue