Lines Matching refs:ib_steering
1846 struct mlx4_ib_steering *ib_steering = NULL; in mlx4_ib_mcg_attach() local
1852 ib_steering = kmalloc(sizeof(*ib_steering), GFP_KERNEL); in mlx4_ib_mcg_attach()
1853 if (!ib_steering) in mlx4_ib_mcg_attach()
1881 if (ib_steering) { in mlx4_ib_mcg_attach()
1882 memcpy(ib_steering->gid.raw, gid->raw, 16); in mlx4_ib_mcg_attach()
1883 ib_steering->reg_id = reg_id; in mlx4_ib_mcg_attach()
1885 list_add(&ib_steering->list, &mqp->steering_rules); in mlx4_ib_mcg_attach()
1897 kfree(ib_steering); in mlx4_ib_mcg_attach()
1931 struct mlx4_ib_steering *ib_steering; in mlx4_ib_mcg_detach() local
1934 list_for_each_entry(ib_steering, &mqp->steering_rules, list) { in mlx4_ib_mcg_detach()
1935 if (!memcmp(ib_steering->gid.raw, gid->raw, 16)) { in mlx4_ib_mcg_detach()
1936 list_del(&ib_steering->list); in mlx4_ib_mcg_detach()
1941 if (&ib_steering->list == &mqp->steering_rules) { in mlx4_ib_mcg_detach()
1945 reg_id = ib_steering->reg_id; in mlx4_ib_mcg_detach()
1946 kfree(ib_steering); in mlx4_ib_mcg_detach()