> +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

Reply via email to