On Tue, Sep 20, 2016 at 8:40 AM, Alexei Starovoitov <alexei.starovoi...@gmail.com> wrote: > On Tue, Sep 20, 2016 at 03:53:10PM +0300, Tariq Toukan wrote: >> >>>+ case XDP_ABORTED: >> >>It is not clearly defined, but I believe XDP_ABORTED should also result >> >>in a warning (calling bpf_warn_invalid_xdp_action(act)). >> I'll add this. > > Certainly NOT. > XDP_ABORTED is an exception case when program does divide by zero. > It should NOT do bpf_warn. It must drop the packet. > We discussed it several months ago. > See mlx4/en_rx.c for canonical implementation. > It should at least bump a counter so that the user knows that aborts are happening.
- [PATCH net-next 0/8] mlx5e XDP support Tariq Toukan
- [PATCH net-next 1/8] net/mlx5e: Build RX SKB o... Tariq Toukan
- [PATCH net-next 2/8] net/mlx5e: Union RQ RX in... Tariq Toukan
- [PATCH net-next 4/8] net/mlx5e: Dynamic RQ typ... Tariq Toukan
- [PATCH net-next 7/8] net/mlx5e: XDP TX forward... Tariq Toukan
- Re: [PATCH net-next 7/8] net/mlx5e: XDP TX... Jesper Dangaard Brouer
- Re: [PATCH net-next 7/8] net/mlx5e: XD... Jesper Dangaard Brouer
- Re: [PATCH net-next 7/8] net/mlx5e... Tariq Toukan
- Re: [PATCH net-next 7/8] net/... Alexei Starovoitov
- Re: [PATCH net-next 7/8] ... Tom Herbert
- Re: [PATCH net-next 7... Eric Dumazet
- Re: [PATCH net-next 7... Jesper Dangaard Brouer
- Re: [PATCH net-next 7... Eric Dumazet
- Re: [PATCH net-next 7... Jesper Dangaard Brouer
- Re: [PATCH net-next 7... Alexei Starovoitov
- Re: [PATCH net-next 7... Thomas Graf
- Re: [PATCH net-next 7... Eric Dumazet
- Re: [PATCH net-next 7... Jesper Dangaard Brouer
- Re: [PATCH net-next 7... Tom Herbert
- Re: [PATCH net-next 7... Jesper Dangaard Brouer