From: Nikolay Aleksandrov <razor@blackwall.org>
To: Ido Schimmel <idosch@nvidia.com>,
netdev@vger.kernel.org, bridge@lists.linux-foundation.org
Cc: petrm@nvidia.com, taspelund@nvidia.com, roopa@nvidia.com,
edumazet@google.com, dsahern@gmail.com, kuba@kernel.org,
pabeni@redhat.com, davem@davemloft.net
Subject: Re: [Bridge] [RFC PATCH net-next 2/4] vxlan: Add support for nexthop ID metadata
Date: Thu, 13 Jul 2023 12:30:07 +0300 [thread overview]
Message-ID: <1bd20ab6-4792-7689-932a-a7b9ccf72402@blackwall.org> (raw)
In-Reply-To: <20230713070925.3955850-3-idosch@nvidia.com>
On 13/07/2023 10:09, Ido Schimmel wrote:
> VXLAN FDB entries can point to FDB nexthop objects. Each such object
> includes the IP address(es) of remote VTEP(s) via which the target host
> is accessible. Example:
>
> # ip nexthop add id 1 via 192.0.2.1 fdb
> # ip nexthop add id 2 via 192.0.2.17 fdb
> # ip nexthop add id 1000 group 1/2 fdb
> # bridge fdb add 00:11:22:33:44:55 dev vx0 self static nhid 1000 src_vni 10020
>
> This is useful for EVPN multihoming where a single host can be connected
> to multiple VTEPs. The source VTEP will calculate the flow hash of the
> skb and forward it towards the IP address of one of the VTEPs member in
> the nexthop group.
>
> There are cases where an external entity (e.g., the bridge driver) can
> provide not only the tunnel ID (i.e., VNI) of the skb, but also the ID
> of the nexthop object via which the skb should be forwarded.
>
> Therefore, in order to support such cases, when the VXLAN device is in
> external / collect metadata mode and the tunnel info attached to the skb
> is of bridge type, extract the nexthop ID from the tunnel info. If the
> ID is valid (i.e., non-zero), forward the skb via the nexthop object
> associated with the ID, as if the skb hit an FDB entry associated with
> this ID.
>
> Signed-off-by: Ido Schimmel <idosch@nvidia.com>
> ---
> drivers/net/vxlan/vxlan_core.c | 44 ++++++++++++++++++++++++++++++++++
> 1 file changed, 44 insertions(+)
>
LGTM
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
next prev parent reply other threads:[~2023-07-13 9:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 7:09 [Bridge] [RFC PATCH net-next 0/4] Add backup nexthop ID support Ido Schimmel
2023-07-13 7:09 ` [Bridge] [RFC PATCH net-next 1/4] ip_tunnels: Add nexthop ID field to ip_tunnel_key Ido Schimmel
2023-07-13 9:29 ` Nikolay Aleksandrov
2023-07-13 7:09 ` [Bridge] [RFC PATCH net-next 2/4] vxlan: Add support for nexthop ID metadata Ido Schimmel
2023-07-13 9:30 ` Nikolay Aleksandrov [this message]
2023-07-13 7:09 ` [Bridge] [RFC PATCH net-next 3/4] bridge: Add backup nexthop ID support Ido Schimmel
2023-07-13 9:33 ` Nikolay Aleksandrov
2023-07-13 9:46 ` Nikolay Aleksandrov
2023-07-13 7:09 ` [Bridge] [RFC PATCH net-next 4/4] selftests: net: Add bridge backup port and backup nexthop ID test Ido Schimmel
2023-07-13 9:34 ` Nikolay Aleksandrov
2023-07-14 17:01 ` [Bridge] [RFC PATCH net-next 0/4] Add backup nexthop ID support David Ahern
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=1bd20ab6-4792-7689-932a-a7b9ccf72402@blackwall.org \
--to=razor@blackwall.org \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=edumazet@google.com \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.com \
--cc=roopa@nvidia.com \
--cc=taspelund@nvidia.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