diff options
author | Aleksey Senin <alex@senin.name> | 2010-07-04 09:55:57 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-08-04 13:44:19 -0400 |
commit | a2ebf07ae53e65bd073f96877e4818f2e89271ae (patch) | |
tree | b17b62a44d04c3bbc8b357960e051500e0f833d0 /drivers/infiniband | |
parent | 48d8fcebb7abf64843314672c1208b730be911bb (diff) |
IB: Rename RAW_ETY to RAW_ETHERTYPE
Change abbreviated IB_QPT_RAW_ETY to IB_QPT_RAW_ETHERTYPE to make
the special QP type easier to understand.
cf http://www.mail-archive.com/linux-rdma@vger.kernel.org/msg04530.html
Signed-off-by: Aleksey Senin <alekseys@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/verbs.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_qp.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_cmd.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index a7da9be43e61..e0fa22238715 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c | |||
@@ -310,8 +310,8 @@ EXPORT_SYMBOL(ib_create_qp); | |||
310 | 310 | ||
311 | static const struct { | 311 | static const struct { |
312 | int valid; | 312 | int valid; |
313 | enum ib_qp_attr_mask req_param[IB_QPT_RAW_ETY + 1]; | 313 | enum ib_qp_attr_mask req_param[IB_QPT_RAW_ETHERTYPE + 1]; |
314 | enum ib_qp_attr_mask opt_param[IB_QPT_RAW_ETY + 1]; | 314 | enum ib_qp_attr_mask opt_param[IB_QPT_RAW_ETHERTYPE + 1]; |
315 | } qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = { | 315 | } qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = { |
316 | [IB_QPS_RESET] = { | 316 | [IB_QPS_RESET] = { |
317 | [IB_QPS_RESET] = { .valid = 1 }, | 317 | [IB_QPS_RESET] = { .valid = 1 }, |
diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c b/drivers/infiniband/hw/ehca/ehca_qp.c index 47d388ec1cde..32fb34201aba 100644 --- a/drivers/infiniband/hw/ehca/ehca_qp.c +++ b/drivers/infiniband/hw/ehca/ehca_qp.c | |||
@@ -251,7 +251,7 @@ static inline int ibqptype2servicetype(enum ib_qp_type ibqptype) | |||
251 | return ST_UD; | 251 | return ST_UD; |
252 | case IB_QPT_RAW_IPV6: | 252 | case IB_QPT_RAW_IPV6: |
253 | return -EINVAL; | 253 | return -EINVAL; |
254 | case IB_QPT_RAW_ETY: | 254 | case IB_QPT_RAW_ETHERTYPE: |
255 | return -EINVAL; | 255 | return -EINVAL; |
256 | default: | 256 | default: |
257 | ehca_gen_err("Invalid ibqptype=%x", ibqptype); | 257 | ehca_gen_err("Invalid ibqptype=%x", ibqptype); |
diff --git a/drivers/infiniband/hw/mthca/mthca_cmd.c b/drivers/infiniband/hw/mthca/mthca_cmd.c index 3603ae89b606..f4ceecd9684b 100644 --- a/drivers/infiniband/hw/mthca/mthca_cmd.c +++ b/drivers/infiniband/hw/mthca/mthca_cmd.c | |||
@@ -1817,7 +1817,7 @@ int mthca_CONF_SPECIAL_QP(struct mthca_dev *dev, int type, u32 qpn, | |||
1817 | case IB_QPT_RAW_IPV6: | 1817 | case IB_QPT_RAW_IPV6: |
1818 | op_mod = 2; | 1818 | op_mod = 2; |
1819 | break; | 1819 | break; |
1820 | case IB_QPT_RAW_ETY: | 1820 | case IB_QPT_RAW_ETHERTYPE: |
1821 | op_mod = 3; | 1821 | op_mod = 3; |
1822 | break; | 1822 | break; |
1823 | default: | 1823 | default: |