Page MenuHomeFreeBSD

D38711.diff
No OneTemporary

D38711.diff

diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
--- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
+++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
@@ -3150,18 +3150,19 @@
static int mlx5_enable_roce(struct mlx5_ib_dev *dev)
{
+ struct epoch_tracker et;
VNET_ITERATOR_DECL(vnet_iter);
int err;
/* Check if mlx5en net device already exists */
VNET_LIST_RLOCK();
+ NET_EPOCH_ENTER(et);
VNET_FOREACH(vnet_iter) {
- IFNET_RLOCK();
CURVNET_SET_QUIET(vnet_iter);
if_foreach(mlx5_enable_roce_if_cb, dev);
CURVNET_RESTORE();
- IFNET_RUNLOCK();
}
+ NET_EPOCH_EXIT(et);
VNET_LIST_RUNLOCK();
dev->roce.nb.notifier_call = mlx5_netdev_event;

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 26, 6:19 PM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12853015
Default Alt Text
D38711.diff (688 B)

Event Timeline