diff options
author | Miao Yan <yanmiaobest@gmail.com> | 2015-12-22 22:06:08 -0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-01-11 11:01:34 +0800 |
commit | c469669ef7b4ee2ec1e0db0053ada6809c5b5f98 (patch) | |
tree | 1eb7d86ac64471767d2875538c09677e5eb58c8d /tci.c | |
parent | fde58177aa112da377bbe1af71e0ec3ee7750196 (diff) | |
download | qemu-c469669ef7b4ee2ec1e0db0053ada6809c5b5f98.zip qemu-c469669ef7b4ee2ec1e0db0053ada6809c5b5f98.tar.gz qemu-c469669ef7b4ee2ec1e0db0053ada6809c5b5f98.tar.bz2 |
net/vmxnet3: return correct value for VMXNET3_CMD_GET_DID_* command
VMXNET3_CMD_GET_DID_LO should return PCI ID of the device
and VMXNET3_CMD_GET_DID_HI should return vmxnet3 revision ID.
This behavior can be observed by the following steps:
1) run a Linux distro on esxi server (5.x+)
2) modify vmxnet3 Linux driver to read DID_HI and DID_LO:
VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, VMXNET3_CMD_GET_DID_LO);
lo = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_CMD);
VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, VMXNET3_CMD_GET_DID_HI);
high = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_CMD);
pr_info("vmxnet3 DID lo: 0x%x, high: 0x%x\n", lo, high);
The kernel log will have something like the following message:
[ 7005.111170] vmxnet3 DID lo: 0x7b0, high: 0x1
Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'tci.c')
0 files changed, 0 insertions, 0 deletions