Lines Matching refs:ipsec
388 struct bond_ipsec *ipsec; in bond_ipsec_add_sa() local
412 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC); in bond_ipsec_add_sa()
413 if (!ipsec) { in bond_ipsec_add_sa()
421 ipsec->xs = xs; in bond_ipsec_add_sa()
422 INIT_LIST_HEAD(&ipsec->list); in bond_ipsec_add_sa()
424 list_add(&ipsec->list, &bond->ipsec_list); in bond_ipsec_add_sa()
427 kfree(ipsec); in bond_ipsec_add_sa()
436 struct bond_ipsec *ipsec; in bond_ipsec_add_sa_all() local
457 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_add_sa_all()
458 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all()
459 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs)) { in bond_ipsec_add_sa_all()
461 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all()
476 struct bond_ipsec *ipsec; in bond_ipsec_del_sa() local
505 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_del_sa()
506 if (ipsec->xs == xs) { in bond_ipsec_del_sa()
507 list_del(&ipsec->list); in bond_ipsec_del_sa()
508 kfree(ipsec); in bond_ipsec_del_sa()
519 struct bond_ipsec *ipsec; in bond_ipsec_del_sa_all() local
530 list_for_each_entry(ipsec, &bond->ipsec_list, list) { in bond_ipsec_del_sa_all()
531 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all()
541 slave->dev->xfrmdev_ops->xdo_dev_state_delete(ipsec->xs); in bond_ipsec_del_sa_all()
543 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all()