Lines Matching refs:ipsec
426 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local
450 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC); in bond_ipsec_add_sa()
451 if (!ipsec) { in bond_ipsec_add_sa()
459 ipsec->xs = xs; in bond_ipsec_add_sa()
460 INIT_LIST_HEAD(&ipsec->list); in bond_ipsec_add_sa()
462 list_add(&ipsec->list, &bond->ipsec_list); in bond_ipsec_add_sa()
465 kfree(ipsec); in bond_ipsec_add_sa()
474 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local
495 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_add_sa_all()
496 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all()
497 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs)) { in bond_ipsec_add_sa_all()
499 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all()
514 struct bond_ipsec *ipsec; in bond_ipsec_del_sa() local
543 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_del_sa()
544 if (ipsec->xs == xs) { in bond_ipsec_del_sa()
545 list_del(&ipsec->list); in bond_ipsec_del_sa()
546 kfree(ipsec); in bond_ipsec_del_sa()
557 struct bond_ipsec *ipsec; in bond_ipsec_del_sa_all() local
568 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_del_sa_all()
569 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all()
579 slave->dev->xfrmdev_ops->xdo_dev_state_delete(ipsec->xs); in bond_ipsec_del_sa_all()
581 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all()