verbs.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) verbs.c (24dc831b77eca9361cf835be59fa69ea0e471afc)
1/*
2 * Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
3 * Copyright (c) 2004 Infinicon Corporation. All rights reserved.
4 * Copyright (c) 2004 Intel Corporation. All rights reserved.
5 * Copyright (c) 2004 Topspin Corporation. All rights reserved.
6 * Copyright (c) 2004 Voltaire Corporation. All rights reserved.
7 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
8 * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved.

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

1200}
1201EXPORT_SYMBOL(ib_modify_qp_is_ok);
1202
1203int ib_resolve_eth_dmac(struct ib_device *device,
1204 struct ib_ah_attr *ah_attr)
1205{
1206 int ret = 0;
1207
1/*
2 * Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.
3 * Copyright (c) 2004 Infinicon Corporation. All rights reserved.
4 * Copyright (c) 2004 Intel Corporation. All rights reserved.
5 * Copyright (c) 2004 Topspin Corporation. All rights reserved.
6 * Copyright (c) 2004 Voltaire Corporation. All rights reserved.
7 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
8 * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved.

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

1200}
1201EXPORT_SYMBOL(ib_modify_qp_is_ok);
1202
1203int ib_resolve_eth_dmac(struct ib_device *device,
1204 struct ib_ah_attr *ah_attr)
1205{
1206 int ret = 0;
1207
1208 if (ah_attr->port_num < rdma_start_port(device) ||
1209 ah_attr->port_num > rdma_end_port(device))
1208 if (!rdma_is_port_valid(device, ah_attr->port_num))
1210 return -EINVAL;
1211
1212 if (!rdma_cap_eth_ah(device, ah_attr->port_num))
1213 return 0;
1214
1215 if (rdma_link_local_addr((struct in6_addr *)ah_attr->grh.dgid.raw)) {
1216 rdma_get_ll_mac((struct in6_addr *)ah_attr->grh.dgid.raw,
1217 ah_attr->dmac);

--- 880 unchanged lines hidden ---
1209 return -EINVAL;
1210
1211 if (!rdma_cap_eth_ah(device, ah_attr->port_num))
1212 return 0;
1213
1214 if (rdma_link_local_addr((struct in6_addr *)ah_attr->grh.dgid.raw)) {
1215 rdma_get_ll_mac((struct in6_addr *)ah_attr->grh.dgid.raw,
1216 ah_attr->dmac);

--- 880 unchanged lines hidden ---