main.c (60c07f80b04698f6c054b675cb67ec5e7ee8db27) main.c (da6d6ba3c6f085abf82723612efd746a97f8e414)
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:

--- 510 unchanged lines hidden (view full) ---

519 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM;
520 props->device_cap_flags |= IB_DEVICE_UD_TSO;
521 }
522
523 if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) &&
524 MLX5_CAP_ETH(dev->mdev, scatter_fcs))
525 props->device_cap_flags |= IB_DEVICE_RAW_SCATTER_FCS;
526
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:

--- 510 unchanged lines hidden (view full) ---

519 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM;
520 props->device_cap_flags |= IB_DEVICE_UD_TSO;
521 }
522
523 if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) &&
524 MLX5_CAP_ETH(dev->mdev, scatter_fcs))
525 props->device_cap_flags |= IB_DEVICE_RAW_SCATTER_FCS;
526
527 if (mlx5_get_flow_namespace(dev->mdev, MLX5_FLOW_NAMESPACE_BYPASS))
528 props->device_cap_flags |= IB_DEVICE_MANAGED_FLOW_STEERING;
529
527 props->vendor_part_id = mdev->pdev->device;
528 props->hw_ver = mdev->pdev->revision;
529
530 props->max_mr_size = ~0ull;
531 props->page_size_cap = ~(min_page_size - 1);
532 props->max_qp = 1 << MLX5_CAP_GEN(mdev, log_max_qp);
533 props->max_qp_wr = 1 << MLX5_CAP_GEN(mdev, log_max_qp_sz);
534 max_rq_sg = MLX5_CAP_GEN(mdev, max_wqe_sz_rq) /

--- 2027 unchanged lines hidden ---
530 props->vendor_part_id = mdev->pdev->device;
531 props->hw_ver = mdev->pdev->revision;
532
533 props->max_mr_size = ~0ull;
534 props->page_size_cap = ~(min_page_size - 1);
535 props->max_qp = 1 << MLX5_CAP_GEN(mdev, log_max_qp);
536 props->max_qp_wr = 1 << MLX5_CAP_GEN(mdev, log_max_qp_sz);
537 max_rq_sg = MLX5_CAP_GEN(mdev, max_wqe_sz_rq) /

--- 2027 unchanged lines hidden ---