main.c (6aa447bcbb444cd1b738613a20627f288d631665) main.c (f031396531fe2b1a6ffb4fa5eceb9c1fa276869a)
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:

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

499 }
500 if (MLX5_CAP_GEN(mdev, block_lb_mc))
501 props->device_cap_flags |= IB_DEVICE_BLOCK_MULTICAST_LOOPBACK;
502
503 if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) &&
504 (MLX5_CAP_ETH(dev->mdev, csum_cap)))
505 props->device_cap_flags |= IB_DEVICE_RAW_IP_CSUM;
506
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:

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

499 }
500 if (MLX5_CAP_GEN(mdev, block_lb_mc))
501 props->device_cap_flags |= IB_DEVICE_BLOCK_MULTICAST_LOOPBACK;
502
503 if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) &&
504 (MLX5_CAP_ETH(dev->mdev, csum_cap)))
505 props->device_cap_flags |= IB_DEVICE_RAW_IP_CSUM;
506
507 if (MLX5_CAP_GEN(mdev, ipoib_basic_offloads)) {
508 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM;
509 props->device_cap_flags |= IB_DEVICE_UD_TSO;
510 }
511
507 props->vendor_part_id = mdev->pdev->device;
508 props->hw_ver = mdev->pdev->revision;
509
510 props->max_mr_size = ~0ull;
511 props->page_size_cap = ~(min_page_size - 1);
512 props->max_qp = 1 << MLX5_CAP_GEN(mdev, log_max_qp);
513 props->max_qp_wr = 1 << MLX5_CAP_GEN(mdev, log_max_qp_sz);
514 max_rq_sg = MLX5_CAP_GEN(mdev, max_wqe_sz_rq) /

--- 1886 unchanged lines hidden ---
512 props->vendor_part_id = mdev->pdev->device;
513 props->hw_ver = mdev->pdev->revision;
514
515 props->max_mr_size = ~0ull;
516 props->page_size_cap = ~(min_page_size - 1);
517 props->max_qp = 1 << MLX5_CAP_GEN(mdev, log_max_qp);
518 props->max_qp_wr = 1 << MLX5_CAP_GEN(mdev, log_max_qp_sz);
519 max_rq_sg = MLX5_CAP_GEN(mdev, max_wqe_sz_rq) /

--- 1886 unchanged lines hidden ---