VNIC protocol version is reported in big-endian format, but it is not byteswapped before logging. Fix that, and remove version comparison as only one protocol version exists at this time.
Unified · Split
| @@ -4678,12 +4678,10 @@ static void ibmvnic_handle_crq(union ibmvnic_crq *crq, · 4677 unmodified lines | |||
| 4678 | dev_err(dev, "Error %ld in VERSION_EXCHG_RSP\n", rc); | 4678 | dev_err(dev, "Error %ld in VERSION_EXCHG_RSP\n", rc); |
| 4679 | break; | 4679 | break; |
| 4680 | } | 4680 | } |
| 4681 | dev_info(dev, "Partner protocol version is %d\n", | 4681 | ibmvnic_version = |
| 4682 | crq->version_exchange_rsp.version); | ||
| 4683 | if (be16_to_cpu(crq->version_exchange_rsp.version) < | ||
| 4684 | ibmvnic_version) | ||
| 4685 | ibmvnic_version = | ||
| 4686 | be16_to_cpu(crq->version_exchange_rsp.version); | 4682 | be16_to_cpu(crq->version_exchange_rsp.version); |
| 4683 | dev_info(dev, "Partner protocol version is %d\n", | ||
| 4684 | ibmvnic_version); | ||
| 4687 | send_cap_queries(adapter); | 4685 | send_cap_queries(adapter); |
| 4688 | break; | 4686 | break; |
| 4689 | case QUERY_CAPABILITY_RSP: | 4687 | case QUERY_CAPABILITY_RSP: |