Ido Schimmel ab30e4d4b2 mlxsw: spectrum_ipip: Rename Spectrum-2 ip6gre operations
There are two main differences between Spectrum-1 and newer ASICs in
terms of IP-in-IP support:

1. In Spectrum-1, RIFs representing ip6gre tunnels require two entries
   in the RIF table.

2. In Spectrum-2 and newer ASICs, packets ingress the underlay (during
   encapsulation) and egress the underlay (during decapsulation) via a
   special generic loopback RIF.

The first difference was handled in previous patches by adding the
'double_rif_entry' field to the Spectrum-1 operations structure of
ip6gre RIFs. The second difference is handled during RIF creation, by
only creating a generic loopback RIF in Spectrum-2 and newer ASICs.

Therefore, the ip6gre operations can be shared between Spectrum-1 and
newer ASIC in a similar fashion to how the ipgre operations are shared.

Rename the operations to not be Spectrum-2 specific and move them
earlier in the file so that they could later be used for Spectrum-1.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-08 18:46:32 -08:00
..
2022-11-25 17:50:57 -08:00
2022-11-04 16:03:43 -07:00
2022-12-02 15:35:21 -08:00
2022-12-08 12:37:42 -08:00
2022-09-21 20:33:49 +02:00
2022-12-04 12:18:37 -08:00
2022-10-12 10:23:24 -07:00
2022-10-09 14:05:15 -07:00
2022-11-18 13:59:45 -08:00
2022-10-14 18:41:41 -07:00
2022-12-02 16:27:15 -08:00
2022-10-14 12:38:03 -07:00
2022-12-07 12:37:35 -08:00
2022-10-10 09:10:28 -07:00
2022-10-07 11:32:10 -07:00
2022-11-25 13:54:48 -08:00
2022-11-25 12:32:42 -08:00
2022-11-23 11:19:06 -08:00
2022-11-18 10:59:52 -08:00
2022-10-22 03:29:32 +00:00
2022-10-10 14:02:53 -07:00
2022-10-10 14:02:53 -07:00
2022-11-01 12:21:53 -07:00
2022-11-16 10:49:06 -08:00