Lines Matching refs:congestion

56 #define	CONG_LOCK(dev) sx_xlock(&(dev)->congestion.lock)
57 #define CONG_UNLOCK(dev) sx_xunlock(&(dev)->congestion.lock)
58 #define CONG_LOCKED(dev) sx_xlocked(&(dev)->congestion.lock)
282 dev->congestion.arg[x] = mlx5_get_cc_param_val(field, x); in mlx5_ib_get_all_cc_params()
329 value = dev->congestion.arg[arg2]; in mlx5_ib_cong_params_handler()
333 value == dev->congestion.arg[arg2]) in mlx5_ib_cong_params_handler()
337 dev->congestion.arg[arg2] = value; in mlx5_ib_cong_params_handler()
345 dev->congestion.arg[arg2]); in mlx5_ib_cong_params_handler()
364 dev->congestion.c = MLX5_GET(query_cong_status_out, out, field); \ in mlx5_ib_get_all_cc_status()
382 value = dev->congestion.arg[arg2]; in mlx5_ib_cong_status_handler()
388 value == dev->congestion.arg[arg2]) in mlx5_ib_cong_status_handler()
392 dev->congestion.arg[arg2] = value; in mlx5_ib_cong_status_handler()
426 container_of(work, struct mlx5_ib_dev, congestion.dwork.work); in mlx5_ib_read_cong_stats()
438 dev->congestion.syndrome = in mlx5_ib_read_cong_stats()
440 dev->congestion.rp_cur_flows = in mlx5_ib_read_cong_stats()
442 dev->congestion.sum_flows = in mlx5_ib_read_cong_stats()
444 dev->congestion.rp_cnp_ignored = in mlx5_ib_read_cong_stats()
446 dev->congestion.rp_cnp_handled = in mlx5_ib_read_cong_stats()
448 dev->congestion.time_stamp = in mlx5_ib_read_cong_stats()
450 dev->congestion.accumulators_period = in mlx5_ib_read_cong_stats()
452 dev->congestion.np_ecn_marked_roce_packets = in mlx5_ib_read_cong_stats()
454 dev->congestion.np_cnp_sent = in mlx5_ib_read_cong_stats()
461 schedule_delayed_work(&dev->congestion.dwork, hz); in mlx5_ib_read_cong_stats()
468 while (cancel_delayed_work_sync(&dev->congestion.dwork)) in mlx5_ib_cleanup_congestion()
470 sysctl_ctx_free(&dev->congestion.ctx); in mlx5_ib_cleanup_congestion()
471 sx_destroy(&dev->congestion.lock); in mlx5_ib_cleanup_congestion()
483 ctx = &dev->congestion.ctx; in mlx5_ib_init_congestion()
485 sx_init(&dev->congestion.lock, "mlx5ibcong"); in mlx5_ib_init_congestion()
486 INIT_DELAYED_WORK(&dev->congestion.dwork, mlx5_ib_read_cong_stats); in mlx5_ib_init_congestion()
509 sysctl_ctx_free(&dev->congestion.ctx); in mlx5_ib_init_congestion()
536 sysctl_ctx_free(&dev->congestion.ctx); in mlx5_ib_init_congestion()
545 &dev->congestion.arg[x + MLX5_IB_CONG_PARAMS_NUM], in mlx5_ib_init_congestion()
548 schedule_delayed_work(&dev->congestion.dwork, hz); in mlx5_ib_init_congestion()