|
21 | 21 | #define MLXSW_SP_NVE_VXLAN_SUPPORTED_FLAGS (VXLAN_F_UDP_ZERO_CSUM_TX | \
|
22 | 22 | VXLAN_F_LEARN)
|
23 | 23 |
|
24 |
| -static bool mlxsw_sp1_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, |
25 |
| - const struct net_device *dev, |
26 |
| - struct netlink_ext_ack *extack) |
| 24 | +static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, |
| 25 | + const struct net_device *dev, |
| 26 | + struct netlink_ext_ack *extack) |
27 | 27 | {
|
28 | 28 | struct vxlan_dev *vxlan = netdev_priv(dev);
|
29 | 29 | struct vxlan_config *cfg = &vxlan->cfg;
|
@@ -240,21 +240,14 @@ mlxsw_sp_nve_vxlan_clear_offload(const struct net_device *nve_dev, __be32 vni)
|
240 | 240 |
|
241 | 241 | const struct mlxsw_sp_nve_ops mlxsw_sp1_nve_vxlan_ops = {
|
242 | 242 | .type = MLXSW_SP_NVE_TYPE_VXLAN,
|
243 |
| - .can_offload = mlxsw_sp1_nve_vxlan_can_offload, |
| 243 | + .can_offload = mlxsw_sp_nve_vxlan_can_offload, |
244 | 244 | .nve_config = mlxsw_sp_nve_vxlan_config,
|
245 | 245 | .init = mlxsw_sp1_nve_vxlan_init,
|
246 | 246 | .fini = mlxsw_sp1_nve_vxlan_fini,
|
247 | 247 | .fdb_replay = mlxsw_sp_nve_vxlan_fdb_replay,
|
248 | 248 | .fdb_clear_offload = mlxsw_sp_nve_vxlan_clear_offload,
|
249 | 249 | };
|
250 | 250 |
|
251 |
| -static bool mlxsw_sp2_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, |
252 |
| - const struct net_device *dev, |
253 |
| - struct netlink_ext_ack *extack) |
254 |
| -{ |
255 |
| - return false; |
256 |
| -} |
257 |
| - |
258 | 251 | static bool mlxsw_sp2_nve_vxlan_learning_set(struct mlxsw_sp *mlxsw_sp,
|
259 | 252 | bool learning_en)
|
260 | 253 | {
|
@@ -374,7 +367,7 @@ static void mlxsw_sp2_nve_vxlan_fini(struct mlxsw_sp_nve *nve)
|
374 | 367 |
|
375 | 368 | const struct mlxsw_sp_nve_ops mlxsw_sp2_nve_vxlan_ops = {
|
376 | 369 | .type = MLXSW_SP_NVE_TYPE_VXLAN,
|
377 |
| - .can_offload = mlxsw_sp2_nve_vxlan_can_offload, |
| 370 | + .can_offload = mlxsw_sp_nve_vxlan_can_offload, |
378 | 371 | .nve_config = mlxsw_sp_nve_vxlan_config,
|
379 | 372 | .init = mlxsw_sp2_nve_vxlan_init,
|
380 | 373 | .fini = mlxsw_sp2_nve_vxlan_fini,
|
|
0 commit comments