diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:57:19 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:57:19 -0400 |
| commit | 877f075aac900288ce2e6a64075cceff09210a7e (patch) | |
| tree | 2bcf23e903403a2bfa3c6fac14d1334614e4d0f1 | |
| parent | 3cf59142bcd391680beb6932838fe09a73947705 (diff) | |
| parent | f7eaa7ed8fd46542275cf249cd934a366f6556bb (diff) | |
Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
Pull infiniband updates from Roland Dreier:
"Main batch of InfiniBand/RDMA changes for 3.15:
- The biggest change is core API extensions and mlx5 low-level driver
support for handling DIF/DIX-style protection information, and the
addition of PI support to the iSER initiator. Target support will
be arriving shortly through the SCSI target tree.
- A nice simplification to the "umem" memory pinning library now that
we have chained sg lists. Kudos to Yishai Hadas for realizing our
code didn't have to be so crazy.
- Another nice simplification to the sg wrappers used by qib, ipath
and ehca to handle their mapping of memory to adapter.
- The usual batch of fixes to bugs found by static checkers etc.
from intrepid people like Dan Carpenter and Yann Droneaud.
- A large batch of cxgb4, ocrdma, qib driver updates"
* tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (102 commits)
RDMA/ocrdma: Unregister inet notifier when unloading ocrdma
RDMA/ocrdma: Fix warnings about pointer <-> integer casts
RDMA/ocrdma: Code clean-up
RDMA/ocrdma: Display FW version
RDMA/ocrdma: Query controller information
RDMA/ocrdma: Support non-embedded mailbox commands
RDMA/ocrdma: Handle CQ overrun error
RDMA/ocrdma: Display proper value for max_mw
RDMA/ocrdma: Use non-zero tag in SRQ posting
RDMA/ocrdma: Memory leak fix in ocrdma_dereg_mr()
RDMA/ocrdma: Increment abi version count
RDMA/ocrdma: Update version string
be2net: Add abi version between be2net and ocrdma
RDMA/ocrdma: ABI versioning between ocrdma and be2net
RDMA/ocrdma: Allow DPP QP creation
RDMA/ocrdma: Read ASIC_ID register to select asic_gen
RDMA/ocrdma: SQ and RQ doorbell offset clean up
RDMA/ocrdma: EQ full catastrophe avoidance
RDMA/cxgb4: Disable DSGL use by default
RDMA/cxgb4: rx_data() needs to hold the ep mutex
...
88 files changed, 4634 insertions, 1475 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index 0601b9daf840..c3239170d8b7 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
| @@ -349,23 +349,6 @@ static void cm_init_av_for_response(struct cm_port *port, struct ib_wc *wc, | |||
| 349 | grh, &av->ah_attr); | 349 | grh, &av->ah_attr); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | int ib_update_cm_av(struct ib_cm_id *id, const u8 *smac, const u8 *alt_smac) | ||
| 353 | { | ||
| 354 | struct cm_id_private *cm_id_priv; | ||
| 355 | |||
| 356 | cm_id_priv = container_of(id, struct cm_id_private, id); | ||
| 357 | |||
| 358 | if (smac != NULL) | ||
| 359 | memcpy(cm_id_priv->av.smac, smac, sizeof(cm_id_priv->av.smac)); | ||
| 360 | |||
| 361 | if (alt_smac != NULL) | ||
| 362 | memcpy(cm_id_priv->alt_av.smac, alt_smac, | ||
| 363 | sizeof(cm_id_priv->alt_av.smac)); | ||
| 364 | |||
| 365 | return 0; | ||
| 366 | } | ||
| 367 | EXPORT_SYMBOL(ib_update_cm_av); | ||
| 368 | |||
| 369 | static int cm_init_av_by_path(struct ib_sa_path_rec *path, struct cm_av *av) | 352 | static int cm_init_av_by_path(struct ib_sa_path_rec *path, struct cm_av *av) |
| 370 | { | 353 | { |
| 371 | struct cm_device *cm_dev; | 354 | struct cm_device *cm_dev; |
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 199958d9ddc8..42c3058e6e9c 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
| @@ -1284,15 +1284,6 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) | |||
| 1284 | struct rdma_id_private *listen_id, *conn_id; | 1284 | struct rdma_id_private *listen_id, *conn_id; |
| 1285 | struct rdma_cm_event event; | 1285 | struct rdma_cm_event event; |
| 1286 | int offset, ret; | 1286 | int offset, ret; |
| 1287 | u8 smac[ETH_ALEN]; | ||
| 1288 | u8 alt_smac[ETH_ALEN]; | ||
| 1289 | u8 *psmac = smac; | ||
| 1290 | u8 *palt_smac = alt_smac; | ||
| 1291 | int is_iboe = ((rdma_node_get_transport(cm_id->device->node_type) == | ||
| 1292 | RDMA_TRANSPORT_IB) && | ||
| 1293 | (rdma_port_get_link_layer(cm_id->device, | ||
