Lines Matching refs:ib_steering
1711 struct mlx4_ib_steering *ib_steering = NULL; in mlx4_ib_mcg_attach() local
1717 ib_steering = kmalloc(sizeof(*ib_steering), GFP_KERNEL); in mlx4_ib_mcg_attach()
1718 if (!ib_steering) in mlx4_ib_mcg_attach()
1746 if (ib_steering) { in mlx4_ib_mcg_attach()
1747 memcpy(ib_steering->gid.raw, gid->raw, 16); in mlx4_ib_mcg_attach()
1748 ib_steering->reg_id = reg_id; in mlx4_ib_mcg_attach()
1750 list_add(&ib_steering->list, &mqp->steering_rules); in mlx4_ib_mcg_attach()
1762 kfree(ib_steering); in mlx4_ib_mcg_attach()
1796 struct mlx4_ib_steering *ib_steering; in mlx4_ib_mcg_detach() local
1799 list_for_each_entry(ib_steering, &mqp->steering_rules, list) { in mlx4_ib_mcg_detach()
1800 if (!memcmp(ib_steering->gid.raw, gid->raw, 16)) { in mlx4_ib_mcg_detach()
1801 list_del(&ib_steering->list); in mlx4_ib_mcg_detach()
1806 if (&ib_steering->list == &mqp->steering_rules) { in mlx4_ib_mcg_detach()
1810 reg_id = ib_steering->reg_id; in mlx4_ib_mcg_detach()
1811 kfree(ib_steering); in mlx4_ib_mcg_detach()