Lines Matching defs:ipsec
430 struct bond_ipsec *ipsec;
449 NL_SET_ERR_MSG_MOD(extack, "Slave does not support ipsec offload");
454 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC);
455 if (!ipsec) {
463 ipsec->xs = xs;
464 INIT_LIST_HEAD(&ipsec->list);
466 list_add(&ipsec->list, &bond->ipsec_list);
469 kfree(ipsec);
478 struct bond_ipsec *ipsec;
499 list_for_each_entry(ipsec, &bond->ipsec_list, list) {
500 ipsec->xs->xso.real_dev = slave->dev;
501 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs, NULL)) {
503 ipsec->xs->xso.real_dev = NULL;
518 struct bond_ipsec *ipsec;
547 list_for_each_entry(ipsec, &bond->ipsec_list, list) {
548 if (ipsec->xs == xs) {
549 list_del(&ipsec->list);
550 kfree(ipsec);
561 struct bond_ipsec *ipsec;
572 list_for_each_entry(ipsec, &bond->ipsec_list, list) {
573 if (!ipsec->xs->xso.real_dev)
583 slave->dev->xfrmdev_ops->xdo_dev_state_delete(ipsec->xs);
585 ipsec->xs->xso.real_dev = NULL;