Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-21 Thread Jonathan Lemon
On Sun, Jun 21, 2020 at 12:03:14PM +0200, Kal Cutter Conley wrote: > On Sat, Jun 20, 2020 at 8:42 PM Jonathan Lemon > wrote: > > > > On Sat, Jun 20, 2020 at 12:42:36PM +0200, Kal Cutter Conley wrote: > > > On Thu, Jun 18, 2020 at 5:23 PM Jonathan Lemon > > > wrote: > > > > > > > > On Sun, Jun 1

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-21 Thread Kal Cutter Conley
On Sat, Jun 20, 2020 at 8:42 PM Jonathan Lemon wrote: > > On Sat, Jun 20, 2020 at 12:42:36PM +0200, Kal Cutter Conley wrote: > > On Thu, Jun 18, 2020 at 5:23 PM Jonathan Lemon > > wrote: > > > > > > On Sun, Jun 14, 2020 at 10:55:30AM +0200, Kal Cutter Conley wrote: > > > > Hi Saeed, > > > > Than

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-20 Thread Jonathan Lemon
On Sat, Jun 20, 2020 at 12:42:36PM +0200, Kal Cutter Conley wrote: > On Thu, Jun 18, 2020 at 5:23 PM Jonathan Lemon > wrote: > > > > On Sun, Jun 14, 2020 at 10:55:30AM +0200, Kal Cutter Conley wrote: > > > Hi Saeed, > > > Thanks for explaining the reasoning behind the special mlx5 queue > > > num

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-20 Thread Kal Cutter Conley
On Thu, Jun 18, 2020 at 5:23 PM Jonathan Lemon wrote: > > On Sun, Jun 14, 2020 at 10:55:30AM +0200, Kal Cutter Conley wrote: > > Hi Saeed, > > Thanks for explaining the reasoning behind the special mlx5 queue > > numbering with XDP zerocopy. > > > > We have a process using AF_XDP that also shares

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-18 Thread Kal Cutter Conley
On Thu, Jun 18, 2020 at 5:23 PM Jonathan Lemon wrote: > > On Sun, Jun 14, 2020 at 10:55:30AM +0200, Kal Cutter Conley wrote: > > Hi Saeed, > > Thanks for explaining the reasoning behind the special mlx5 queue > > numbering with XDP zerocopy. > > > > We have a process using AF_XDP that also shares

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-18 Thread Jonathan Lemon
On Sun, Jun 14, 2020 at 10:55:30AM +0200, Kal Cutter Conley wrote: > Hi Saeed, > Thanks for explaining the reasoning behind the special mlx5 queue > numbering with XDP zerocopy. > > We have a process using AF_XDP that also shares the network interface > with other processes on the system. ethtool

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2020-06-14 Thread Kal Cutter Conley
Hi Saeed, Thanks for explaining the reasoning behind the special mlx5 queue numbering with XDP zerocopy. We have a process using AF_XDP that also shares the network interface with other processes on the system. ethtool rx flow classification rules are used to route the traffic to the appropriate X

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2019-09-03 Thread Saeed Mahameed
On Mon, 2019-09-02 at 11:08 +0200, Jesper Dangaard Brouer wrote: > On Sun, 1 Sep 2019 18:47:15 +0200 > Kal Cutter Conley wrote: > > > Hi, > > I figured out the problem. Let me document the issue here for > > others > > and hopefully start a discussion. > > > > The mlx5 driver uses special queue

Re: net/mlx5e: bind() always returns EINVAL with XDP_ZEROCOPY

2019-09-02 Thread Jesper Dangaard Brouer
On Sun, 1 Sep 2019 18:47:15 +0200 Kal Cutter Conley wrote: > Hi, > I figured out the problem. Let me document the issue here for others > and hopefully start a discussion. > > The mlx5 driver uses special queue ids for ZC. If N is the number of > configured queues, then for XDP_ZEROCOPY the queu