Skip to contentSkip to conversation

virtio: fix link state regression

PATCH Superseded Stephen Hemminger 4 participants 4 messages Dec 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio: fix link state regression

Support for link state interrupt was broken on virtio by

commit bda66c418c85 ("ethdev: add device fields from PCI layer")

This is caused because the actual value of drv_flags is not set until after the resource_init has figured out whether it is using UIO or direct I/O instructions.

---
There maybe other drivers with the same problem. It would have been better to move the structure elements (and break ABI) rather than assume it safe to copy them. Better to fail compiling.

#1 lore raw
Quoted 8 lines · Stephen Hemminger

Support for link state interrupt was broken on virtio by

commit bda66c418c85 ("ethdev: add device fields from PCI layer")

This is caused because the actual value of drv_flags is not set until after the resource_init has figured out whether it is using UIO or direct I/O instructions.

Quoted 5 lines

---
There maybe other drivers with the same problem. It would have been better to move the structure elements (and break ABI) rather than assume it safe to copy them. Better to fail compiling.

I see no patch content.

	--yliu
#2 lore raw

Hi Stephen, Yuanhan,

Quoted 23 lines

-----Original Message-----
From: Yuanhan Liu [mailto:[email protected]]
Sent: Friday, December 4, 2015 3:30 AM
To: Stephen Hemminger <[email protected]>
Cc: Xie, Huawei <[email protected]>; Iremonger, Bernard <[email protected]>; [email protected]
Subject: Re: [PATCH] virtio: fix link state regression

Quoted 8 lines · Stephen Hemminger

Support for link state interrupt was broken on virtio by

commit bda66c418c85 ("ethdev: add device fields from PCI layer")

This is caused because the actual value of drv_flags is not set until after the resource_init has figured out whether it is using UIO or direct I/O instructions.

Quoted 5 lines

---
There maybe other drivers with the same problem. It would have been better to move the structure elements (and break ABI) rather than assume it safe to copy them. Better to fail compiling.

Quoted 3 lines

I see no patch content.

	--yliu

I have submitted a patch for this issue.

http://dpdk.org/dev/patchwork/patch/9345/

I have checked the other drivers, I found an issue with the bonding PMD. I have submitted a patch for this.

http://dpdk.org/dev/patchwork/patch/9342/

The remaining drivers look fine to me.

Regards,

Bernard.

#3 lore raw

2015-12-04 15:25, Iremonger, Bernard:

Quoted 22 lines

From: Yuanhan Liu [mailto:[email protected]]

Quoted 15 lines · Stephen Hemminger
Quoted 8 lines

Support for link state interrupt was broken on virtio by

commit bda66c418c85 ("ethdev: add device fields from PCI layer")

This is caused because the actual value of drv_flags is not set until after the resource_init has figured out whether it is using UIO or direct I/O instructions.

Quoted 5 lines

---
There maybe other drivers with the same problem. It would have been better to move the structure elements (and break ABI) rather than assume it safe to copy them. Better to fail compiling.

Quoted 3 lines

I see no patch content.

	--yliu

I have submitted a patch for this issue.

Quoted 8 lines

http://dpdk.org/dev/patchwork/patch/9345/

I have checked the other drivers, I found an issue with the bonding PMD. I have submitted a patch for this.

http://dpdk.org/dev/patchwork/patch/9342/

The remaining drivers look fine to me.

Thank you Bernard for the quick response.