Message ID | cover.1738665783.git.petrm@nvidia.com (mailing list archive) |
---|---|
Headers | show |
Series | mlxsw: Preparations for XDP support | expand |
On Tue, Feb 4, 2025 at 11:06 AM Petr Machata <petrm@nvidia.com> wrote: > > Amit Cohen writes: > > A future patch set will add support for XDP in mlxsw driver. This set adds > some preparations. Why? What is the goal here? My understanding is that mlxsw is a hw switch and skb-s are used to implement tap functionality for few listeners. The volume of such packets is supposed to be small. Even if XDP is added there is a huge mismatch in packet rates. Hence the question. Why bother?
> -----Original Message----- > From: Alexei Starovoitov <alexei.starovoitov@gmail.com> > Sent: Tuesday, 4 February 2025 17:56 > To: Petr Machata <petrm@nvidia.com> > Cc: David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni > <pabeni@redhat.com>; Andrew Lunn <andrew+netdev@lunn.ch>; Network Development <netdev@vger.kernel.org>; Amit Cohen > <amcohen@nvidia.com>; Ido Schimmel <idosch@nvidia.com>; Alexei Starovoitov <ast@kernel.org>; Daniel Borkmann > <daniel@iogearbox.net>; Jesper Dangaard Brouer <hawk@kernel.org>; John Fastabend <john.fastabend@gmail.com>; bpf > <bpf@vger.kernel.org>; mlxsw <mlxsw@nvidia.com> > Subject: Re: [PATCH net-next 00/12] mlxsw: Preparations for XDP support > > On Tue, Feb 4, 2025 at 11:06 AM Petr Machata <petrm@nvidia.com> wrote: > > > > Amit Cohen writes: > > > > A future patch set will add support for XDP in mlxsw driver. This set adds > > some preparations. > > Why? > What is the goal here? > My understanding is that mlxsw is a hw switch and skb-s are used to > implement tap functionality for few listeners. > The volume of such packets is supposed to be small. > Even if XDP is added there is a huge mismatch in packet rates. > Hence the question. Why bother? You're right, most of packets should be handled by HW, XDP is mainly useful for telemetry.
On Tue, Feb 4, 2025 at 3:59 PM Amit Cohen <amcohen@nvidia.com> wrote: > > > > > -----Original Message----- > > From: Alexei Starovoitov <alexei.starovoitov@gmail.com> > > Sent: Tuesday, 4 February 2025 17:56 > > To: Petr Machata <petrm@nvidia.com> > > Cc: David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni > > <pabeni@redhat.com>; Andrew Lunn <andrew+netdev@lunn.ch>; Network Development <netdev@vger.kernel.org>; Amit Cohen > > <amcohen@nvidia.com>; Ido Schimmel <idosch@nvidia.com>; Alexei Starovoitov <ast@kernel.org>; Daniel Borkmann > > <daniel@iogearbox.net>; Jesper Dangaard Brouer <hawk@kernel.org>; John Fastabend <john.fastabend@gmail.com>; bpf > > <bpf@vger.kernel.org>; mlxsw <mlxsw@nvidia.com> > > Subject: Re: [PATCH net-next 00/12] mlxsw: Preparations for XDP support > > > > On Tue, Feb 4, 2025 at 11:06 AM Petr Machata <petrm@nvidia.com> wrote: > > > > > > Amit Cohen writes: > > > > > > A future patch set will add support for XDP in mlxsw driver. This set adds > > > some preparations. > > > > Why? > > What is the goal here? > > My understanding is that mlxsw is a hw switch and skb-s are used to > > implement tap functionality for few listeners. > > The volume of such packets is supposed to be small. > > Even if XDP is added there is a huge mismatch in packet rates. > > Hence the question. Why bother? > > You're right, most of packets should be handled by HW, XDP is mainly useful for telemetry. Why skb path is not enough?
> -----Original Message----- > From: Alexei Starovoitov <alexei.starovoitov@gmail.com> > Sent: Tuesday, 4 February 2025 18:02 > To: Amit Cohen <amcohen@nvidia.com> > Cc: Petr Machata <petrm@nvidia.com>; David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub Kicinski > <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; Andrew Lunn <andrew+netdev@lunn.ch>; Network Development > <netdev@vger.kernel.org>; Ido Schimmel <idosch@nvidia.com>; Alexei Starovoitov <ast@kernel.org>; Daniel Borkmann > <daniel@iogearbox.net>; Jesper Dangaard Brouer <hawk@kernel.org>; John Fastabend <john.fastabend@gmail.com>; bpf > <bpf@vger.kernel.org>; mlxsw <mlxsw@nvidia.com> > Subject: Re: [PATCH net-next 00/12] mlxsw: Preparations for XDP support > > On Tue, Feb 4, 2025 at 3:59 PM Amit Cohen <amcohen@nvidia.com> wrote: > > > > > > > > > -----Original Message----- > > > From: Alexei Starovoitov <alexei.starovoitov@gmail.com> > > > Sent: Tuesday, 4 February 2025 17:56 > > > To: Petr Machata <petrm@nvidia.com> > > > Cc: David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni > > > <pabeni@redhat.com>; Andrew Lunn <andrew+netdev@lunn.ch>; Network Development <netdev@vger.kernel.org>; Amit Cohen > > > <amcohen@nvidia.com>; Ido Schimmel <idosch@nvidia.com>; Alexei Starovoitov <ast@kernel.org>; Daniel Borkmann > > > <daniel@iogearbox.net>; Jesper Dangaard Brouer <hawk@kernel.org>; John Fastabend <john.fastabend@gmail.com>; bpf > > > <bpf@vger.kernel.org>; mlxsw <mlxsw@nvidia.com> > > > Subject: Re: [PATCH net-next 00/12] mlxsw: Preparations for XDP support > > > > > > On Tue, Feb 4, 2025 at 11:06 AM Petr Machata <petrm@nvidia.com> wrote: > > > > > > > > Amit Cohen writes: > > > > > > > > A future patch set will add support for XDP in mlxsw driver. This set adds > > > > some preparations. > > > > > > Why? > > > What is the goal here? > > > My understanding is that mlxsw is a hw switch and skb-s are used to > > > implement tap functionality for few listeners. > > > The volume of such packets is supposed to be small. > > > Even if XDP is added there is a huge mismatch in packet rates. > > > Hence the question. Why bother? > > > > You're right, most of packets should be handled by HW, XDP is mainly useful for telemetry. > > Why skb path is not enough? We get better packet rates using XDP, this can be useful to redirect packets to a server for analysis for example.