Lines Matching defs:ipsec
388 struct bond_ipsec *ipsec;
407 slave_warn(bond_dev, slave->dev, "Slave does not support ipsec offload\n");
412 ipsec = kmalloc(sizeof(*ipsec), GFP_ATOMIC);
413 if (!ipsec) {
421 ipsec->xs = xs;
422 INIT_LIST_HEAD(&ipsec->list);
424 list_add(&ipsec->list, &bond->ipsec_list);
427 kfree(ipsec);
436 struct bond_ipsec *ipsec;
457 list_for_each_entry(ipsec, &bond->ipsec_list, list) {
458 ipsec->xs->xso.real_dev = slave->dev;
459 if (slave->dev->xfrmdev_ops->xdo_dev_state_add(ipsec->xs)) {
461 ipsec->xs->xso.real_dev = NULL;
476 struct bond_ipsec *ipsec;
505 list_for_each_entry(ipsec, &bond->ipsec_list, list) {
506 if (ipsec->xs == xs) {
507 list_del(&ipsec->list);
508 kfree(ipsec);
519 struct bond_ipsec *ipsec;
530 list_for_each_entry(ipsec, &bond->ipsec_list, list) {
531 if (!ipsec->xs->xso.real_dev)
541 slave->dev->xfrmdev_ops->xdo_dev_state_delete(ipsec->xs);