Lines Matching refs:ipsec
430 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local
454 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC); in bond_ipsec_add_sa()
455 if (!ipsec) { in bond_ipsec_add_sa()
463 ipsec->xs = xs; in bond_ipsec_add_sa()
464 INIT_LIST_HEAD(&ipsec->list); in bond_ipsec_add_sa()
466 list_add(&ipsec->list, &bond->ipsec_list); in bond_ipsec_add_sa()
469 kfree(ipsec); in bond_ipsec_add_sa()
478 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local
499 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_add_sa_all()
500 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all()
501 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs, NULL)) { in bond_ipsec_add_sa_all()
503 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all()
518 struct bond_ipsec *ipsec; in bond_ipsec_del_sa() local
547 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_del_sa()
548 if (ipsec->xs == xs) { in bond_ipsec_del_sa()
549 list_del(&ipsec->list); in bond_ipsec_del_sa()
550 kfree(ipsec); in bond_ipsec_del_sa()
561 struct bond_ipsec *ipsec; in bond_ipsec_del_sa_all() local
572 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_del_sa_all()
573 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all()
583 slave->dev->xfrmdev_ops->xdo_dev_state_delete(ipsec->xs); in bond_ipsec_del_sa_all()
585 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all()