search for: first_client

Displaying 11 results from an estimated 11 matches for "first_client".

2006 Jan 28
1
Unit Tests Take 2
Different question this time, and maybe only a core developer can answer. In 1.0, use_instantiated_fixtures is turned off by default. What is the new best-practice for not tying your tests to your test data? Before you would use: In clients.yml first_client: id: 1 name: Fred In a test case: def test_sometest assert_equal @first_client.name, @client.name end With this setting turned off be default, for obvious reasons, is there a different method of doing the test so it is not dependent on the actual data? Thanks guys. Bob...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
..._VLAN) | (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + VirtIONet *n = to_virtio_net(vdev); + + if (n->vhost_device) + return 1 << VIRTIO_NET_F_MAC; #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -175,6 +182,9 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = to_virtio_net(vdev); + /* vhost net supports no features */ + if (n->vhos...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
..._VLAN) | (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + VirtIONet *n = to_virtio_net(vdev); + + if (n->vhost_device) + return 1 << VIRTIO_NET_F_MAC; #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -175,6 +182,9 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = to_virtio_net(vdev); + /* vhost net supports no features */ + if (n->vhos...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...x); n->can_receive = 0; memcpy(n->mac, nd->macaddr, 6); - n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive, + n->vc = qemu_new_vlan_client(nd->vlan, NULL, virtio_net_can_receive, n); + n->tap_fd = get_tap_fd(n->vc->vlan->first_client->opaque); + n->next = VirtIONetHead; + //push the device on top of the list + VirtIONetHead = n; return &n->vdev; } diff --git a/qemu/sysemu.h b/qemu/sysemu.h index e20159d..4bedd11 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -66,6 +66,9 @@ void qemu_del_wait_obj...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...x); n->can_receive = 0; memcpy(n->mac, nd->macaddr, 6); - n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive, + n->vc = qemu_new_vlan_client(nd->vlan, NULL, virtio_net_can_receive, n); + n->tap_fd = get_tap_fd(n->vc->vlan->first_client->opaque); + n->next = VirtIONetHead; + //push the device on top of the list + VirtIONetHead = n; return &n->vdev; } diff --git a/qemu/sysemu.h b/qemu/sysemu.h index e20159d..4bedd11 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -66,6 +66,9 @@ void qemu_del_wait_obj...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...(1 << VIRTIO_NET_F_CTRL_VLAN) | - (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + uint32_t features = 0; + VirtIONet *n = to_virtio_net(vdev); #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -149,12 +147,23 @@ static uint32_t virtio_net_get_features(VirtIODevice *vdev) features |= (1 << VIRTIO_NET_F_HOST_TSO4); features |= (1 << VIRTIO_NET_F_HOST_TSO6); features |= (1 << VIRTIO_NET_F_HOST_ECN); -...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...(1 << VIRTIO_NET_F_CTRL_VLAN) | - (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + uint32_t features = 0; + VirtIONet *n = to_virtio_net(vdev); #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -149,12 +147,23 @@ static uint32_t virtio_net_get_features(VirtIODevice *vdev) features |= (1 << VIRTIO_NET_F_HOST_TSO4); features |= (1 << VIRTIO_NET_F_HOST_TSO6); features |= (1 << VIRTIO_NET_F_HOST_ECN); -...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
..._VLAN) | (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + VirtIONet *n = to_virtio_net(vdev); + + if (n->vhost_device) + return 1 << VIRTIO_NET_F_MAC; #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -175,6 +182,9 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = to_virtio_net(vdev); + /* vhost net supports no features */ + if (n->vhos...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
..._VLAN) | (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + VirtIONet *n = to_virtio_net(vdev); + + if (n->vhost_device) + return 1 << VIRTIO_NET_F_MAC; #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -175,6 +182,9 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = to_virtio_net(vdev); + /* vhost net supports no features */ + if (n->vhos...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
..._VLAN) | (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + VirtIONet *n = to_virtio_net(vdev); + + if (n->vhost_device) + return 1 << VIRTIO_NET_F_MAC; #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -175,6 +182,9 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = to_virtio_net(vdev); + /* vhost net supports no features */ + if (n->vhos...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
..._VLAN) | (1 << VIRTIO_NET_F_CTRL_RX_EXTRA); + VirtIONet *n = to_virtio_net(vdev); + + if (n->vhost_device) + return 1 << VIRTIO_NET_F_MAC; #ifdef TAP_VNET_HDR - VirtIONet *n = to_virtio_net(vdev); VLANClientState *host = n->vc->vlan->first_client; if (tap_has_vnet_hdr(host)) { @@ -175,6 +182,9 @@ static uint32_t virtio_net_bad_features(VirtIODevice *vdev) static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = to_virtio_net(vdev); + /* vhost net supports no features */ + if (n->vhos...