Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetKVM: BZ#1537430 Import LinkSpeed/Duplex configs from the hypervisor #241

Merged
merged 1 commit into from Jan 24, 2018

Conversation

bish22ah
Copy link
Contributor

Changes following the introduction of virtio's flag, VIRTIO_NET_F_SPEED_DUPLEX,
which allows the host to set the LinkSpeed/Duplex values.

Up until this stage the configurations of LinkSpeed/Duplex used were hardcoded,
with default LinkSpeed=10Gbits/s, Duplex=full.
But uppon the introduction of VIRTIO_NET_F_SPEED_DUPLEX, it'll be more useful to
import them from the host and apply them if the VIRTIO_NET_F_SPEED_DUPLEX is on,
or, use the default configurations if it is off:
(LinkSpeed=10Gbits/s, Duplex=full).

Changes also includes removing the ConnectRate parameter from the inf file as we
never saw that it was used.

Qemu patches:

  1. [v4,2/3] qemu: virtio-net: use 64-bit values for feature flags:
    https://patchwork.ozlabs.org/patch/856266/
  2. [v4,3/3] qemu: add linkspeed and duplex settings to virtio-net:
    https://patchwork.ozlabs.org/patch/856226/

Signed-off-by: Bishara AbuHattoum bishara@daynix.com

Copy link
Collaborator

@YanVugenfirer YanVugenfirer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vista compilation failes

Changes following the introduction of virtio's flag, VIRTIO_NET_F_SPEED_DUPLEX,
which allows the host to set the LinkSpeed/Duplex values.

Up until this stage the configurations of LinkSpeed/Duplex used were hardcoded,
with default LinkSpeed=10Gbits/s, Duplex=full.
But uppon the introduction of VIRTIO_NET_F_SPEED_DUPLEX, it'll be more useful to
import them from the host and apply them if the VIRTIO_NET_F_SPEED_DUPLEX is on,
or, use the default configurations if it is off:
(LinkSpeed=10Gbits/s, Duplex=full).

Changes also includes removing the ConnectRate parameter from the inf file as we
never saw that it was used.

Qemu patches:

  1. [v4,2/3] qemu: virtio-net: use 64-bit values for feature flags:
     https://patchwork.ozlabs.org/patch/856266/
  2. [v4,3/3] qemu: add linkspeed and duplex settings to virtio-net:
     https://patchwork.ozlabs.org/patch/856226/

Signed-off-by: Bishara AbuHattoum <bishara@daynix.com>
@YanVugenfirer YanVugenfirer merged commit 23d536f into virtio-win:master Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants