Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / amazon / ena / ena_netdev.c
index edaf378..0e43000 100644 (file)
@@ -384,7 +384,6 @@ static int ena_xdp_execute(struct ena_ring *rx_ring, struct xdp_buff *xdp)
        struct xdp_frame *xdpf;
        u64 *xdp_stat;
 
-       rcu_read_lock();
        xdp_prog = READ_ONCE(rx_ring->xdp_bpf_prog);
 
        if (!xdp_prog)
@@ -441,8 +440,6 @@ static int ena_xdp_execute(struct ena_ring *rx_ring, struct xdp_buff *xdp)
 
        ena_increase_stat(xdp_stat, 1, &rx_ring->syncp);
 out:
-       rcu_read_unlock();
-
        return verdict;
 }