ipsec 774 drivers/net/ethernet/intel/ixgbe/ixgbe.h struct ixgbe_ipsec *ipsec; ipsec 305 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 319 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct rx_sa *r = &ipsec->rx_tbl[i]; ipsec 320 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct tx_sa *t = &ipsec->tx_tbl[i]; ipsec 341 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i]; ipsec 355 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c static int ixgbe_ipsec_find_empty_idx(struct ixgbe_ipsec *ipsec, bool rxtable) ipsec 360 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) ipsec 365 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->rx_tbl[i].used) ipsec 369 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) ipsec 374 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->tx_tbl[i].used) ipsec 392 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c static struct xfrm_state *ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec, ipsec 400 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, ipsec 565 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 592 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ret = ixgbe_ipsec_find_empty_idx(ipsec, true); ipsec 634 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c (checked < ipsec->num_rx_sa || first < 0); ipsec 636 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->ip_tbl[i].used) { ipsec 637 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!memcmp(ipsec->ip_tbl[i].ipaddr, ipsec 648 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->num_rx_sa == 0) ipsec 654 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->ip_tbl[match].ref_cnt++; ipsec 660 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c memcpy(ipsec->ip_tbl[first].ipaddr, ipsec 662 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->ip_tbl[first].ref_cnt = 1; ipsec 663 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->ip_tbl[first].used = true; ipsec 683 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); ipsec 689 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->num_rx_sa++; ipsec 692 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, ipsec 702 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ret = ixgbe_ipsec_find_empty_idx(ipsec, false); ipsec 724 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); ipsec 730 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->num_tx_sa++; ipsec 750 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 760 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa = &ipsec->rx_tbl[sa_idx]; ipsec 775 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->ip_tbl[ipi].ref_cnt > 0) { ipsec 776 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->ip_tbl[ipi].ref_cnt--; ipsec 778 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->ip_tbl[ipi].ref_cnt) { ipsec 779 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c memset(&ipsec->ip_tbl[ipi], 0, ipsec 787 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->num_rx_sa--; ipsec 791 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->tx_tbl[sa_idx].used) { ipsec 798 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); ipsec 799 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->num_tx_sa--; ipsec 803 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->num_rx_sa == 0 && ipsec->num_tx_sa == 0) { ipsec 842 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 845 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec) ipsec 849 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c for (i = 0; i < IXGBE_IPSEC_MAX_SA_COUNT && ipsec->num_rx_sa; i++) { ipsec 850 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->rx_tbl[i].used) ipsec 852 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->rx_tbl[i].mode & IXGBE_RXTXMOD_VF && ipsec 853 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->rx_tbl[i].vf == vf) ipsec 854 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ixgbe_ipsec_del_sa(ipsec->rx_tbl[i].xs); ipsec 858 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c for (i = 0; i < IXGBE_IPSEC_MAX_SA_COUNT && ipsec->num_tx_sa; i++) { ipsec 859 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->tx_tbl[i].used) ipsec 861 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->tx_tbl[i].mode & IXGBE_RXTXMOD_VF && ipsec 862 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->tx_tbl[i].vf == vf) ipsec 863 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ixgbe_ipsec_del_sa(ipsec->tx_tbl[i].xs); ipsec 881 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 950 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->rx_tbl[sa_idx].vf = vf; ipsec 951 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->rx_tbl[sa_idx].mode |= IXGBE_RXTXMOD_VF; ipsec 954 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->tx_tbl[sa_idx].vf = vf; ipsec 955 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->tx_tbl[sa_idx].mode |= IXGBE_RXTXMOD_VF; ipsec 991 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 1011 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa = &ipsec->rx_tbl[sa_idx]; ipsec 1022 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c xs = ipsec->rx_tbl[sa_idx].xs; ipsec 1033 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c tsa = &ipsec->tx_tbl[sa_idx]; ipsec 1044 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c xs = ipsec->tx_tbl[sa_idx].xs; ipsec 1066 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 1092 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c tsa = &ipsec->tx_tbl[itd->sa_idx]; ipsec 1159 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 1200 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c xs = ixgbe_ipsec_find_rx_state(ipsec, daddr, proto, spi, !!ip4); ipsec 1224 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec; ipsec 1241 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL); ipsec 1242 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec) ipsec 1244 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c hash_init(ipsec->rx_sa_list); ipsec 1247 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->rx_tbl = kzalloc(size, GFP_KERNEL); ipsec 1248 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->rx_tbl) ipsec 1252 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->tx_tbl = kzalloc(size, GFP_KERNEL); ipsec 1253 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->tx_tbl) ipsec 1257 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->ip_tbl = kzalloc(size, GFP_KERNEL); ipsec 1258 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!ipsec->ip_tbl) ipsec 1261 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->num_rx_sa = 0; ipsec 1262 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->num_tx_sa = 0; ipsec 1264 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c adapter->ipsec = ipsec; ipsec 1273 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec->ip_tbl); ipsec 1274 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec->rx_tbl); ipsec 1275 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec->tx_tbl); ipsec 1276 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec); ipsec 1287 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c struct ixgbe_ipsec *ipsec = adapter->ipsec; ipsec 1289 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c adapter->ipsec = NULL; ipsec 1290 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec) { ipsec 1291 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec->ip_tbl); ipsec 1292 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec->rx_tbl); ipsec 1293 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec->tx_tbl); ipsec 1294 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c kfree(ipsec); ipsec 10939 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (adapter->ipsec) ipsec 103 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec = adapter->ipsec; ipsec 112 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct rx_sa *r = &ipsec->rx_tbl[i]; ipsec 113 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct tx_sa *t = &ipsec->tx_tbl[i]; ipsec 140 drivers/net/ethernet/intel/ixgbevf/ipsec.c int ixgbevf_ipsec_find_empty_idx(struct ixgbevf_ipsec *ipsec, bool rxtable) ipsec 145 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) ipsec 150 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec->rx_tbl[i].used) ipsec 154 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) ipsec 159 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec->tx_tbl[i].used) ipsec 178 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct xfrm_state *ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, ipsec 186 drivers/net/ethernet/intel/ixgbevf/ipsec.c hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, ipsec 265 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec = adapter->ipsec; ipsec 284 drivers/net/ethernet/intel/ixgbevf/ipsec.c ret = ixgbevf_ipsec_find_empty_idx(ipsec, true); ipsec 325 drivers/net/ethernet/intel/ixgbevf/ipsec.c memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); ipsec 329 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->num_rx_sa++; ipsec 332 drivers/net/ethernet/intel/ixgbevf/ipsec.c hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, ipsec 338 drivers/net/ethernet/intel/ixgbevf/ipsec.c ret = ixgbevf_ipsec_find_empty_idx(ipsec, false); ipsec 365 drivers/net/ethernet/intel/ixgbevf/ipsec.c memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); ipsec 369 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->num_tx_sa++; ipsec 383 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec = adapter->ipsec; ipsec 389 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec->rx_tbl[sa_idx].used) { ipsec 395 drivers/net/ethernet/intel/ixgbevf/ipsec.c ixgbevf_ipsec_del_pf_sa(adapter, ipsec->rx_tbl[sa_idx].pfsa); ipsec 396 drivers/net/ethernet/intel/ixgbevf/ipsec.c hash_del_rcu(&ipsec->rx_tbl[sa_idx].hlist); ipsec 397 drivers/net/ethernet/intel/ixgbevf/ipsec.c memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); ipsec 398 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->num_rx_sa--; ipsec 402 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec->tx_tbl[sa_idx].used) { ipsec 408 drivers/net/ethernet/intel/ixgbevf/ipsec.c ixgbevf_ipsec_del_pf_sa(adapter, ipsec->tx_tbl[sa_idx].pfsa); ipsec 409 drivers/net/ethernet/intel/ixgbevf/ipsec.c memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); ipsec 410 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->num_tx_sa--; ipsec 451 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec = adapter->ipsec; ipsec 478 drivers/net/ethernet/intel/ixgbevf/ipsec.c tsa = &ipsec->tx_tbl[sa_idx]; ipsec 546 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec = adapter->ipsec; ipsec 587 drivers/net/ethernet/intel/ixgbevf/ipsec.c xs = ixgbevf_ipsec_find_rx_state(ipsec, daddr, proto, spi, !!ip4); ipsec 610 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec; ipsec 620 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL); ipsec 621 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec) ipsec 623 drivers/net/ethernet/intel/ixgbevf/ipsec.c hash_init(ipsec->rx_sa_list); ipsec 626 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->rx_tbl = kzalloc(size, GFP_KERNEL); ipsec 627 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec->rx_tbl) ipsec 631 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->tx_tbl = kzalloc(size, GFP_KERNEL); ipsec 632 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (!ipsec->tx_tbl) ipsec 635 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->num_rx_sa = 0; ipsec 636 drivers/net/ethernet/intel/ixgbevf/ipsec.c ipsec->num_tx_sa = 0; ipsec 638 drivers/net/ethernet/intel/ixgbevf/ipsec.c adapter->ipsec = ipsec; ipsec 652 drivers/net/ethernet/intel/ixgbevf/ipsec.c kfree(ipsec->rx_tbl); ipsec 653 drivers/net/ethernet/intel/ixgbevf/ipsec.c kfree(ipsec->tx_tbl); ipsec 654 drivers/net/ethernet/intel/ixgbevf/ipsec.c kfree(ipsec); ipsec 665 drivers/net/ethernet/intel/ixgbevf/ipsec.c struct ixgbevf_ipsec *ipsec = adapter->ipsec; ipsec 667 drivers/net/ethernet/intel/ixgbevf/ipsec.c adapter->ipsec = NULL; ipsec 668 drivers/net/ethernet/intel/ixgbevf/ipsec.c if (ipsec) { ipsec 669 drivers/net/ethernet/intel/ixgbevf/ipsec.c kfree(ipsec->rx_tbl); ipsec 670 drivers/net/ethernet/intel/ixgbevf/ipsec.c kfree(ipsec->tx_tbl); ipsec 671 drivers/net/ethernet/intel/ixgbevf/ipsec.c kfree(ipsec); ipsec 393 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h struct ixgbevf_ipsec *ipsec; ipsec 870 drivers/net/ethernet/mellanox/mlx5/core/en.h struct mlx5e_ipsec *ipsec; ipsec 60 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *ipsec, ipsec 67 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) ipsec 80 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c struct mlx5e_ipsec *ipsec = sa_entry->ipsec; ipsec 84 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ret = ida_simple_get(&ipsec->halloc, 1, 0, GFP_KERNEL); ipsec 88 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); ipsec 90 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); ipsec 91 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); ipsec 98 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c struct mlx5e_ipsec *ipsec = sa_entry->ipsec; ipsec 101 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); ipsec 103 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); ipsec 108 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c struct mlx5e_ipsec *ipsec = sa_entry->ipsec; ipsec 112 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ida_simple_remove(&ipsec->halloc, sa_entry->handle); ipsec 304 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c sa_entry->ipsec = priv->ipsec; ipsec 388 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c flush_workqueue(sa_entry->ipsec->wq); ipsec 401 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c struct mlx5e_ipsec *ipsec = NULL; ipsec 408 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL); ipsec 409 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (!ipsec) ipsec 412 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c hash_init(ipsec->sadb_rx); ipsec 413 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c spin_lock_init(&ipsec->sadb_rx_lock); ipsec 414 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ida_init(&ipsec->halloc); ipsec 415 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ipsec->en_priv = priv; ipsec 416 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ipsec->en_priv->ipsec = ipsec; ipsec 417 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ipsec->no_trailer = !!(mlx5_accel_ipsec_device_caps(priv->mdev) & ipsec 419 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ipsec->wq = alloc_ordered_workqueue("mlx5e_ipsec: %s", 0, ipsec 421 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (!ipsec->wq) { ipsec 422 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c kfree(ipsec); ipsec 431 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c struct mlx5e_ipsec *ipsec = priv->ipsec; ipsec 433 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (!ipsec) ipsec 436 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c drain_workqueue(ipsec->wq); ipsec 437 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c destroy_workqueue(ipsec->wq); ipsec 439 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c ida_destroy(&ipsec->halloc); ipsec 440 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c kfree(ipsec); ipsec 441 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c priv->ipsec = NULL; ipsec 475 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c netdev_warn(sa_entry->ipsec->en_priv->netdev, ipsec 502 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c WARN_ON(!queue_work(sa_entry->ipsec->wq, &modify_work->work)); ipsec 518 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (!priv->ipsec) ipsec 100 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h struct mlx5e_ipsec *ipsec; ipsec 252 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); ipsec 258 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); ipsec 265 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); ipsec 271 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); ipsec 276 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata); ipsec 303 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sp_alloc); ipsec 308 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c xs = mlx5e_ipsec_sadb_rx_lookup(priv->ipsec, sa_handle); ipsec 310 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sadb_miss); ipsec 323 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c if (likely(priv->ipsec->no_trailer)) { ipsec 335 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_syndrome); ipsec 80 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c if (!priv->ipsec) ipsec 90 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c if (!priv->ipsec) ipsec 108 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c if (!priv->ipsec) ipsec 111 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c ret = mlx5_accel_ipsec_counters_read(priv->mdev, (u64 *)&priv->ipsec->stats, ipsec 114 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c memset(&priv->ipsec->stats, 0, sizeof(priv->ipsec->stats)); ipsec 121 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c if (!priv->ipsec) ipsec 125 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c data[idx++] = MLX5E_READ_CTR64_CPU(&priv->ipsec->stats, ipsec 129 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->sw_stats, ipsec 515 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (c->priv->ipsec) ipsec 61 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h struct mlx5_fpga_ipsec *ipsec; ipsec 190 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); ipsec 191 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, ipsec 196 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); ipsec 224 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (!fdev || !fdev->ipsec) ipsec 242 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); ipsec 243 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf); ipsec 245 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c list_add_tail(&context->list, &fdev->ipsec->pending_cmds); ipsec 246 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); ipsec 297 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (is_v2_sadb_supported(fdev->ipsec)) ipsec 336 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (!fdev->ipsec) ipsec 339 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, esp)) ipsec 342 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, ipv6)) ipsec 345 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, lso)) ipsec 348 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, rx_no_trailer)) ipsec 351 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, esn)) { ipsec 363 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (!fdev || !fdev->ipsec) ipsec 366 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c return MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, ipsec 380 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (!fdev || !fdev->ipsec) ipsec 383 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c addr = (u64)MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, ipsec 385 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c ((u64)MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, ipsec 676 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct mlx5_fpga_ipsec *fipsec = fdev->ipsec; ipsec 722 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c opcode = is_v2_sadb_supported(fdev->ipsec) ? ipsec 826 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct mlx5_fpga_ipsec *fipsec = fdev->ipsec; ipsec 827 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c int opcode = is_v2_sadb_supported(fdev->ipsec) ? ipsec 1051 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct mlx5_fpga_ipsec *fipsec = fdev->ipsec; ipsec 1131 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct mlx5_fpga_ipsec *fipsec = fdev->ipsec; ipsec 1257 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec = kzalloc(sizeof(*fdev->ipsec), GFP_KERNEL); ipsec 1258 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c if (!fdev->ipsec) ipsec 1261 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec->fdev = fdev; ipsec 1263 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c err = mlx5_fpga_get_sbu_caps(fdev, sizeof(fdev->ipsec->caps), ipsec 1264 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec->caps); ipsec 1271 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c INIT_LIST_HEAD(&fdev->ipsec->pending_cmds); ipsec 1272 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c spin_lock_init(&fdev->ipsec->pending_cmds_lock); ipsec 1285 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec->conn = conn; ipsec 1287 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c err = rhashtable_init(&fdev->ipsec->sa_hash, &rhash_sa); ipsec 1290 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c mutex_init(&fdev->ipsec->sa_hash_lock); ipsec 1292 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec->rules_rb = RB_ROOT; ipsec 1293 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c mutex_init(&fdev->ipsec->rules_rb_lock); ipsec 1305 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c rhashtable_destroy(&fdev->ipsec->sa_hash); ipsec 1311 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c kfree(fdev->ipsec); ipsec 1312 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec = NULL; ipsec 1334 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c destroy_rules_rb(&fdev->ipsec->rules_rb); ipsec 1335 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c rhashtable_destroy(&fdev->ipsec->sa_hash); ipsec 1337 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c mlx5_fpga_sbu_conn_destroy(fdev->ipsec->conn); ipsec 1338 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c kfree(fdev->ipsec); ipsec 1339 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c fdev->ipsec = NULL; ipsec 1422 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c (!MLX5_GET(ipsec_extended_cap, mdev->fpga->ipsec->caps, ipsec 1473 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct mlx5_fpga_ipsec *fipsec = fdev->ipsec; ipsec 17 drivers/net/netdevsim/ipsec.c struct nsim_ipsec *ipsec = &ns->ipsec; ipsec 26 drivers/net/netdevsim/ipsec.c bufsize = (ipsec->count * 4 * 60) + 60; ipsec 34 drivers/net/netdevsim/ipsec.c ipsec->count, ipsec->tx); ipsec 37 drivers/net/netdevsim/ipsec.c struct nsim_sa *sap = &ipsec->sa[i]; ipsec 68 drivers/net/netdevsim/ipsec.c static int nsim_ipsec_find_empty_idx(struct nsim_ipsec *ipsec) ipsec 72 drivers/net/netdevsim/ipsec.c if (ipsec->count == NSIM_IPSEC_MAX_SA_COUNT) ipsec 77 drivers/net/netdevsim/ipsec.c if (!ipsec->sa[i].used) ipsec 130 drivers/net/netdevsim/ipsec.c struct nsim_ipsec *ipsec; ipsec 139 drivers/net/netdevsim/ipsec.c ipsec = &ns->ipsec; ipsec 153 drivers/net/netdevsim/ipsec.c ret = nsim_ipsec_find_empty_idx(ipsec); ipsec 184 drivers/net/netdevsim/ipsec.c memcpy(&ipsec->sa[sa_idx], &sa, sizeof(sa)); ipsec 190 drivers/net/netdevsim/ipsec.c ipsec->count++; ipsec 198 drivers/net/netdevsim/ipsec.c struct nsim_ipsec *ipsec = &ns->ipsec; ipsec 202 drivers/net/netdevsim/ipsec.c if (!ipsec->sa[sa_idx].used) { ipsec 208 drivers/net/netdevsim/ipsec.c memset(&ipsec->sa[sa_idx], 0, sizeof(struct nsim_sa)); ipsec 209 drivers/net/netdevsim/ipsec.c ipsec->count--; ipsec 215 drivers/net/netdevsim/ipsec.c struct nsim_ipsec *ipsec = &ns->ipsec; ipsec 217 drivers/net/netdevsim/ipsec.c ipsec->ok++; ipsec 231 drivers/net/netdevsim/ipsec.c struct nsim_ipsec *ipsec = &ns->ipsec; ipsec 259 drivers/net/netdevsim/ipsec.c tsa = &ipsec->sa[sa_idx]; ipsec 270 drivers/net/netdevsim/ipsec.c ipsec->tx++; ipsec 286 drivers/net/netdevsim/ipsec.c ns->ipsec.pfile = debugfs_create_file("ipsec", 0400, ipsec 293 drivers/net/netdevsim/ipsec.c struct nsim_ipsec *ipsec = &ns->ipsec; ipsec 295 drivers/net/netdevsim/ipsec.c if (ipsec->count) ipsec 297 drivers/net/netdevsim/ipsec.c ipsec->count); ipsec 298 drivers/net/netdevsim/ipsec.c debugfs_remove_recursive(ipsec->pfile); ipsec 74 drivers/net/netdevsim/netdevsim.h struct nsim_ipsec ipsec;