[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170921152654.GF27589@lunn.ch>
Date: Thu, 21 Sep 2017 17:26:54 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, davem@...emloft.net, yotamg@...lanox.com,
idosch@...lanox.com, mlxsw@...lanox.com
Subject: Re: [patch net-next 07/12] mlxsw: spectrum: Add the multicast
routing offloading logic
> +static void mlxsw_sp_mr_route_stats_update(struct mlxsw_sp *mlxsw_sp,
> + struct mlxsw_sp_mr_route *mr_route)
> +{
> + struct mlxsw_sp_mr *mr = mlxsw_sp->mr;
> + u64 packets, bytes;
> +
> + if (mr_route->route_action == MLXSW_SP_MR_ROUTE_ACTION_TRAP)
> + return;
> +
> + mr->mr_ops->route_stats(mlxsw_sp, mr_route->route_priv, &packets,
> + &bytes);
> +
> + switch (mr_route->mr_table->proto) {
> + case MLXSW_SP_L3_PROTO_IPV4:
> + mr_route->mfc4->mfc_un.res.pkt = packets;
> + mr_route->mfc4->mfc_un.res.bytes = bytes;
What about wrong_if and lastuse?
Is an mfc with iif on the host, not the switch, not offloaded?
Andrew
Powered by blists - more mailing lists