Re: [PATCH net-next v2 11/12] bnxt_en: Add basic XDP support.

2017-02-02 Thread Alexei Starovoitov
On Thu, Feb 02, 2017 at 03:08:27PM -0800, Jakub Kicinski wrote: > > + rcu_read_lock(); > > + act = bpf_prog_run_xdp(xdp_prog, &xdp); > > + rcu_read_unlock(); > > + > > + if (orig_data != xdp.data) { > > + offset = xdp.data - xdp.data_hard_start; > > + len = xdp.data_end

Re: [PATCH net-next v2 11/12] bnxt_en: Add basic XDP support.

2017-02-02 Thread Jakub Kicinski
On Thu, 2 Feb 2017 11:55:39 -0500, Michael Chan wrote: > +/* returns the following: > + * true- packet consumed by XDP and new buffer is allocated. > + * false - packet should be passed to the stack. > + */ > +bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, > +

Re: [PATCH net-next v2 11/12] bnxt_en: Add basic XDP support.

2017-02-02 Thread Michael Chan
On Thu, Feb 2, 2017 at 9:18 AM, Mintz, Yuval wrote: >> +config BNXT_XDP >> + bool "Xpress Data Path (XDP) driver support" >> + default n >> + depends on BNXT && BPF >> + ---help--- >> + Say Y here if you want to enable XDP in the driver to support >> + eBPF programs in

RE: [PATCH net-next v2 11/12] bnxt_en: Add basic XDP support.

2017-02-02 Thread Mintz, Yuval
> +config BNXT_XDP > + bool "Xpress Data Path (XDP) driver support" > + default n > + depends on BNXT && BPF > + ---help--- > + Say Y here if you want to enable XDP in the driver to support > + eBPF programs in the fast path. > + Wasn't it recently discussed that per-fe