Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40892
b: refs/heads/master
c: c581211
h: refs/heads/master
v: v3
  • Loading branch information
Hoang-Nam Nguyen authored and Roland Dreier committed Nov 13, 2006
1 parent dbd4d8b commit b644b26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e28db5d8ff63b1cabc221c5cb84a5f45752f1c2
refs/heads/master: c58121143f87930621c1a6fa9683b6862f2b42c9
5 changes: 2 additions & 3 deletions trunk/drivers/infiniband/hw/ehca/ehca_av.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ struct ib_ah *ehca_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr)
}
memcpy(&av->av.grh.word_1, &gid, sizeof(gid));
}
/* for the time being we use a hard coded PMTU of 2048 Bytes */
av->av.pmtu = 4;
av->av.pmtu = EHCA_MAX_MTU;

/* dgid comes in grh.word_3 */
memcpy(&av->av.grh.word_3, &ah_attr->grh.dgid,
Expand Down Expand Up @@ -193,7 +192,7 @@ int ehca_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr)
memcpy(&new_ehca_av.grh.word_1, &gid, sizeof(gid));
}

new_ehca_av.pmtu = 4; /* see also comment in create_ah() */
new_ehca_av.pmtu = EHCA_MAX_MTU;

memcpy(&new_ehca_av.grh.word_3, &ah_attr->grh.dgid,
sizeof(ah_attr->grh.dgid));
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/infiniband/hw/ehca/hipz_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

#include "ehca_tools.h"

#define EHCA_MAX_MTU 4

/* QP Table Entry Memory Map */
struct hipz_qptemm {
u64 qpx_hcr;
Expand Down

0 comments on commit b644b26

Please sign in to comment.