Skip to content

Commit cf70b5c

Browse files
committed
Merge branch 'mlxsw-preparations-for-nexthop-objects-support-part-1-2'
Ido Schimmel says: ==================== mlxsw: Preparations for nexthop objects support - part 1/2 This patch set contains small and non-functional changes aimed at making it easier to support nexthop objects in mlxsw. Follow up patches can be found here [1]. Patches #1-#4 add a type field to the nexthop group struct instead of the existing protocol field. This will be used later on to add a nexthop object type, which can contain both IPv4 and IPv6 nexthops. Patches #5-#7 move the IPv4 FIB info pointer (i.e., 'struct fib_info') from the nexthop group struct to the route. The pointer will not be available when the nexthop group is a nexthop object, but it needs to be accessible to routes regardless. Patch #8 is the biggest change, but it is an entirely cosmetic change and should therefore be easy to review. The motivation and the change itself are explained in detail in the commit message. Patches #9-#12 perform small changes so that two functions that are currently split between IPv4 and IPv6 could be consolidated in patches Patch #15 removes an outdated comment. [1] https://github.com/idosch/linux/tree/submit/nexthop_objects ==================== Link: https://lore.kernel.org/r/20201113160559.22148-1-idosch@idosch.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 49b1cab + 245f4e4 commit cf70b5c

File tree

3 files changed

+300
-286
lines changed

3 files changed

+300
-286
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ static bool mlxsw_sp_ipip_tunnel_complete(enum mlxsw_sp_l3proto proto,
233233
}
234234

235235
static bool mlxsw_sp_ipip_can_offload_gre4(const struct mlxsw_sp *mlxsw_sp,
236-
const struct net_device *ol_dev,
237-
enum mlxsw_sp_l3proto ol_proto)
236+
const struct net_device *ol_dev)
238237
{
239238
struct ip_tunnel *tunnel = netdev_priv(ol_dev);
240239
__be16 okflags = TUNNEL_KEY; /* We can't offload any other features. */

drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ struct mlxsw_sp_ipip_ops {
4343
struct mlxsw_sp_ipip_entry *ipip_entry);
4444

4545
bool (*can_offload)(const struct mlxsw_sp *mlxsw_sp,
46-
const struct net_device *ol_dev,
47-
enum mlxsw_sp_l3proto ol_proto);
46+
const struct net_device *ol_dev);
4847

4948
/* Return a configuration for creating an overlay loopback RIF. */
5049
struct mlxsw_sp_rif_ipip_lb_config

0 commit comments

Comments
 (0)