On Fri, Apr 01, 2016 at 07:08:31PM -0700, Eric Dumazet wrote: [...] > > > 1) mlx4 can use multiple fragments (priv->num_frags) to hold an Ethernet > frame. > > Still you pass a single fragment but total 'length' here : BPF program > can read past the end of this first fragment and panic the box. > > Please take a look at mlx4_en_complete_rx_desc() and you'll see what I > mean. Sure, I will do some reading. Jesper also raised the issue after you did. Please let me know what you think of the proposals. > > 2) priv->stats.rx_dropped is shared by all the RX queues -> false > sharing. > > This is probably the right time to add a rx_dropped field in struct > mlx4_en_rx_ring since you guys want to drop 14 Mpps, and 50 Mpps on > higher speed links. > This sounds reasonable! Will look into it for the next spin.
- Re: [RFC PATCH 1/5] bpf: add PHYS_... Edward Cree
- [RFC PATCH 3/5] rtnl: add option for setting link b... Brenden Blanco
- [RFC PATCH 4/5] mlx4: add support for fast rx drop ... Brenden Blanco
- Re: [RFC PATCH 4/5] mlx4: add support for fast... Eric Dumazet
- Re: [RFC PATCH 4/5] mlx4: add support for ... Alexei Starovoitov
- Re: [RFC PATCH 4/5] mlx4: add support ... Jesper Dangaard Brouer
- Re: [RFC PATCH 4/5] mlx4: add supp... Eric Dumazet
- Re: [RFC PATCH 4/5] mlx4: add... Alexei Starovoitov
- Re: [RFC PATCH 4/5] mlx4:... Or Gerlitz
- Re: [RFC PATCH 4/5] mlx4:... Brenden Blanco
- Re: [RFC PATCH 4/5] mlx4: add support for ... Brenden Blanco
- Re: [RFC PATCH 4/5] mlx4: add support ... Brenden Blanco
- Re: [RFC PATCH 4/5] mlx4: add supp... Eric Dumazet
- Re: [RFC PATCH 4/5] mlx4: add supp... Eran Ben Elisha
- Re: [RFC PATCH 4/5] mlx4: add support for fast... Jesper Dangaard Brouer
- Re: [RFC PATCH 4/5] mlx4: add support for ... Brenden Blanco
- Re: [RFC PATCH 4/5] mlx4: add support ... Alexei Starovoitov
- Re: [RFC PATCH 4/5] mlx4: add supp... Jesper Dangaard Brouer
- Re: [RFC PATCH 4/5] mlx4: add support for fast... Johannes Berg
- Re: [RFC PATCH 4/5] mlx4: add support for ... Brenden Blanco
- Re: [RFC PATCH 4/5] mlx4: add support ... Johannes Berg