forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
....@@ -30,7 +30,6 @@
3030 * SOFTWARE.
3131 */
3232
33
-#include <linux/prefetch.h>
3433 #include <linux/ip.h>
3534 #include <linux/udp.h>
3635 #include <net/udp.h>
....@@ -65,7 +64,7 @@
6564 {
6665 struct mlx5_core_health *health = &priv->mdev->priv.health;
6766
68
- return health->sick ? 1 : 0;
67
+ return health->fatal_error ? 1 : 0;
6968 }
7069
7170 static int mlx5e_test_link_state(struct mlx5e_priv *priv)
....@@ -115,7 +114,7 @@
115114 return NULL;
116115 }
117116
118
- prefetchw(skb->data);
117
+ net_prefetchw(skb->data);
119118 skb_reserve(skb, NET_IP_ALIGN);
120119
121120 /* Reserve for ethernet and IP header */
....@@ -234,7 +233,7 @@
234233 return err;
235234 }
236235
237
- err = mlx5e_refresh_tirs(priv, true);
236
+ err = mlx5e_refresh_tirs(priv, true, false);
238237 if (err)
239238 goto out;
240239
....@@ -263,7 +262,7 @@
263262 mlx5_nic_vport_update_local_lb(priv->mdev, false);
264263
265264 dev_remove_pack(&lbtp->pt);
266
- mlx5e_refresh_tirs(priv, false);
265
+ mlx5e_refresh_tirs(priv, false, false);
267266 }
268267
269268 #define MLX5E_LB_VERIFY_TIMEOUT (msecs_to_jiffies(200))