]> git.itanic.dy.fi Git - linux-stable/commitdiff
ip_tunnels: Add nexthop ID field to ip_tunnel_key
authorIdo Schimmel <idosch@nvidia.com>
Mon, 17 Jul 2023 08:12:26 +0000 (11:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2023 09:53:48 +0000 (10:53 +0100)
Extend the ip_tunnel_key structure with a field indicating the ID of the
nexthop object via which the skb should be routed.

The field is going to be populated in subsequent patches by the bridge
driver in order to indicate to the VXLAN driver which FDB nexthop object
to use in order to reach the target host.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h

index ed4b6ad3fcac82650525bdf0702e806286f157b6..e8750b4ef7e17ad85c88ec1db73242795ede0281 100644 (file)
@@ -52,6 +52,7 @@ struct ip_tunnel_key {
        u8                      tos;            /* TOS for IPv4, TC for IPv6 */
        u8                      ttl;            /* TTL for IPv4, HL for IPv6 */
        __be32                  label;          /* Flow Label for IPv6 */
+       u32                     nhid;
        __be16                  tp_src;
        __be16                  tp_dst;
        __u8                    flow_flags;