odp.c (f83d9396d1f63048c423efa00e4e244da10a35fd) | odp.c (0113780870b1597ae49f30abfa4957c239f913d3) |
---|---|
1/* 2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 1574 unchanged lines hidden (view full) --- 1583 err = mlx5_eq_destroy_generic(dev->mdev, eq->core); 1584 cancel_work_sync(&eq->work); 1585 destroy_workqueue(eq->wq); 1586 mempool_destroy(eq->pool); 1587 1588 return err; 1589} 1590 | 1/* 2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 1574 unchanged lines hidden (view full) --- 1583 err = mlx5_eq_destroy_generic(dev->mdev, eq->core); 1584 cancel_work_sync(&eq->work); 1585 destroy_workqueue(eq->wq); 1586 mempool_destroy(eq->pool); 1587 1588 return err; 1589} 1590 |
1591void mlx5_odp_init_mr_cache_entry(struct mlx5_cache_ent *ent) | 1591void mlx5_odp_init_mkey_cache_entry(struct mlx5_cache_ent *ent) |
1592{ 1593 if (!(ent->dev->odp_caps.general_caps & IB_ODP_SUPPORT_IMPLICIT)) 1594 return; 1595 1596 switch (ent->order - 2) { 1597 case MLX5_IMR_MTT_CACHE_ENTRY: 1598 ent->page = PAGE_SHIFT; 1599 ent->ndescs = MLX5_IMR_MTT_ENTRIES; --- 222 unchanged lines hidden --- | 1592{ 1593 if (!(ent->dev->odp_caps.general_caps & IB_ODP_SUPPORT_IMPLICIT)) 1594 return; 1595 1596 switch (ent->order - 2) { 1597 case MLX5_IMR_MTT_CACHE_ENTRY: 1598 ent->page = PAGE_SHIFT; 1599 ent->ndescs = MLX5_IMR_MTT_ENTRIES; --- 222 unchanged lines hidden --- |