From: Cong Wang <xiyou.wangcong@gmail.com>
To: Aaron Conole <aconole@redhat.com>
Cc: dev@openvswitch.org, netdev@vger.kernel.org,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Eelco Chaudron" <echaudro@redhat.com>,
"Ilya Maximets" <i.maximets@ovn.org>,
"Adrián Moreno" <amorenoz@redhat.com>,
"Mike Pattrick" <mpattric@redhat.com>,
"Florian Westphal" <fw@strlen.de>,
"John Fastabend" <john.fastabend@gmail.com>,
"Jakub Sitnicki" <jakub@cloudflare.com>,
"Joe Stringer" <joe@ovn.org>
Subject: Re: [RFC] net: openvswitch: Inroduce a light-weight socket map concept.
Date: Sat, 28 Jun 2025 09:20:00 -0700 [thread overview]
Message-ID: <aGAWMLjQhKPvKx2R@pop-os.localdomain> (raw)
In-Reply-To: <20250627210054.114417-1-aconole@redhat.com>
On Fri, Jun 27, 2025 at 05:00:54PM -0400, Aaron Conole wrote:
> The Open vSwitch module allows a user to implemnt a flow-based
> layer 2 virtual switch. This is quite useful to model packet
> movement analagous to programmable physical layer 2 switches.
> But the openvswitch module doesn't always strictly operate at
> layer 2, since it implements higher layer concerns, like
> fragmentation reassembly, connection tracking, TTL
> manipulations, etc. Rightly so, it isn't *strictly* a layer
> 2 virtual forwarding function.
>
> Other virtual forwarding technologies allow for additional
> concepts that 'break' this strict layer separation beyond
> what the openvswitch module provides. The most handy one for
> openvswitch to start looking at is the concept of the socket
> map, from eBPF. This is very useful for TCP connections,
> since in many cases we will do container<->container
> communication (although this can be generalized for the
> phy->container case).
>
> This patch provides two different implementations of actions
> that can be used to construct the same kind of socket map
> capability within the openvswitch module. There are additional
> ways of supporting this concept that I've discussed offline,
> but want to bring it all up for discussion on the mailing list.
> This way, "spirited debate" can occur before I spend too much
> time implementing specific userspace support for an approach
> that may not be acceptable. I did 'port' these from
> implementations that I had done some preliminary testing with
> but no guarantees that what is included actually works well.
>
> For all of these, they are implemented using raw access to
> the tcp socket. This isn't ideal, and a proper
> implementation would reuse the psock infrastructure - but
> I wanted to get something that we can all at least poke (fun)
> at rather than just being purely theoretical. Some of the
> validation that we may need (for example re-writing the
> packet's headers) have been omitted to hopefully make the
> implementations a bit easier to parse. The idea would be
> to validate these in the validate_and_copy routines.
Maybe it is time to introduce eBPF to openvswitch so that they can
share, for example, socket maps, from other layers?
Thanks.
next prev parent reply other threads:[~2025-06-28 16:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 21:00 [RFC] net: openvswitch: Inroduce a light-weight socket map concept Aaron Conole
2025-06-27 21:55 ` Stephen Hemminger
2025-06-30 10:07 ` Eric Dumazet
2025-06-30 12:13 ` Aaron Conole
2025-06-30 12:13 ` Aaron Conole
2025-06-28 16:20 ` Cong Wang [this message]
2025-06-30 12:34 ` Aaron Conole
2025-07-10 9:18 ` Adrián Moreno
2025-07-04 14:22 ` Eelco Chaudron
2025-07-10 20:58 ` Aaron Conole
2025-07-10 9:35 ` Adrián Moreno
2025-07-10 21:07 ` Aaron Conole
2026-04-14 10:32 ` Minxi Hou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aGAWMLjQhKPvKx2R@pop-os.localdomain \
--to=xiyou.wangcong@gmail.com \
--cc=aconole@redhat.com \
--cc=amorenoz@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=dev@openvswitch.org \
--cc=echaudro@redhat.com \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=i.maximets@ovn.org \
--cc=jakub@cloudflare.com \
--cc=joe@ovn.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=mpattric@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox