Commit 248136fa authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller

mlxsw: spectrum_router: Adjust comments on nexthop fields

The comments assume that nexthops are simple Ethernet nexthops
that are programmed to forward packets to the associated neighbour. This
is no longer the case, as both IPinIP and blackhole nexthops are now
supported.

Adjust the comments to reflect these changes.
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c6a5011b
...@@ -2862,14 +2862,14 @@ struct mlxsw_sp_nexthop { ...@@ -2862,14 +2862,14 @@ struct mlxsw_sp_nexthop {
int norm_nh_weight; int norm_nh_weight;
int num_adj_entries; int num_adj_entries;
struct mlxsw_sp_rif *rif; struct mlxsw_sp_rif *rif;
u8 should_offload:1, /* set indicates this neigh is connected and u8 should_offload:1, /* set indicates this nexthop should be written
* should be put to KVD linear area of this group. * to the adjacency table.
*/ */
offloaded:1, /* set in case the neigh is actually put into offloaded:1, /* set indicates this nexthop was written to the
* KVD linear area of this group. * adjacency table.
*/ */
update:1, /* set indicates that MAC of this neigh should be update:1, /* set indicates this nexthop should be updated in the
* updated in HW * adjacency table (f.e., its MAC changed).
*/ */
discard:1; /* nexthop is programmed to discard packets */ discard:1; /* nexthop is programmed to discard packets */
enum mlxsw_sp_nexthop_type type; enum mlxsw_sp_nexthop_type type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment