1*aa0a1e58SJeff Roberson /* 2*aa0a1e58SJeff Roberson * Copyright (c) 2006 Cisco Systems. All rights reserved. 3*aa0a1e58SJeff Roberson * 4*aa0a1e58SJeff Roberson * This software is available to you under a choice of one of two 5*aa0a1e58SJeff Roberson * licenses. You may choose to be licensed under the terms of the GNU 6*aa0a1e58SJeff Roberson * General Public License (GPL) Version 2, available from the file 7*aa0a1e58SJeff Roberson * COPYING in the main directory of this source tree, or the 8*aa0a1e58SJeff Roberson * OpenIB.org BSD license below: 9*aa0a1e58SJeff Roberson * 10*aa0a1e58SJeff Roberson * Redistribution and use in source and binary forms, with or 11*aa0a1e58SJeff Roberson * without modification, are permitted provided that the following 12*aa0a1e58SJeff Roberson * conditions are met: 13*aa0a1e58SJeff Roberson * 14*aa0a1e58SJeff Roberson * - Redistributions of source code must retain the above 15*aa0a1e58SJeff Roberson * copyright notice, this list of conditions and the following 16*aa0a1e58SJeff Roberson * disclaimer. 17*aa0a1e58SJeff Roberson * 18*aa0a1e58SJeff Roberson * - Redistributions in binary form must reproduce the above 19*aa0a1e58SJeff Roberson * copyright notice, this list of conditions and the following 20*aa0a1e58SJeff Roberson * disclaimer in the documentation and/or other materials 21*aa0a1e58SJeff Roberson * provided with the distribution. 22*aa0a1e58SJeff Roberson * 23*aa0a1e58SJeff Roberson * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24*aa0a1e58SJeff Roberson * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25*aa0a1e58SJeff Roberson * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26*aa0a1e58SJeff Roberson * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 27*aa0a1e58SJeff Roberson * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 28*aa0a1e58SJeff Roberson * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 29*aa0a1e58SJeff Roberson * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30*aa0a1e58SJeff Roberson * SOFTWARE. 31*aa0a1e58SJeff Roberson */ 32*aa0a1e58SJeff Roberson 33*aa0a1e58SJeff Roberson #ifndef IBV_PINGPONG_H 34*aa0a1e58SJeff Roberson #define IBV_PINGPONG_H 35*aa0a1e58SJeff Roberson 36*aa0a1e58SJeff Roberson #include <infiniband/verbs.h> 37*aa0a1e58SJeff Roberson 38*aa0a1e58SJeff Roberson enum ibv_mtu pp_mtu_to_enum(int mtu); 39*aa0a1e58SJeff Roberson int pp_get_port_info(struct ibv_context *context, int port, 40*aa0a1e58SJeff Roberson struct ibv_port_attr *attr); 41*aa0a1e58SJeff Roberson void wire_gid_to_gid(const char *wgid, union ibv_gid *gid); 42*aa0a1e58SJeff Roberson void gid_to_wire_gid(const union ibv_gid *gid, char wgid[]); 43*aa0a1e58SJeff Roberson 44*aa0a1e58SJeff Roberson #endif /* IBV_PINGPONG_H */ 45