Displaying 8 results from an estimated 8 matches for "get_param_value".
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...;model", NULL
+ "vlan", "name", "macaddr", "model", "vectors", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2138,6 +2138,22 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
+ nd->nvectors = NIC_NVECTORS_UNSPECIFIED;
+ if (get_param_value(buf, sizeof(buf), "vectors", p)) {
+ char *endptr;
+ long vectors = strtol(buf, &endpt...
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...;model", NULL
+ "vlan", "name", "macaddr", "model", "vectors", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2138,6 +2138,22 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
+ nd->nvectors = NIC_NVECTORS_UNSPECIFIED;
+ if (get_param_value(buf, sizeof(buf), "vectors", p)) {
+ char *endptr;
+ long vectors = strtol(buf, &endpt...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
...ot;addr", "id", "vectors",
+ "vhost", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2620,6 +2622,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
goto out;
}
}
+ if (get_param_value(buf, sizeof(buf), "vhost", p)) {
+ nd->vhost_device = strdup(buf);
+ }
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
...ot;addr", "id", "vectors",
+ "vhost", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2620,6 +2622,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
goto out;
}
}
+ if (get_param_value(buf, sizeof(buf), "vhost", p)) {
+ nd->vhost_device = strdup(buf);
+ }
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
...ot;addr", "id", "vectors",
+ "vhost", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2620,6 +2621,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
goto out;
}
}
+ if (get_param_value(buf, sizeof(buf), "vhost", p)) {
+ nd->vhost_device = strdup(buf);
+ }
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
...ot;addr", "id", "vectors",
+ "vhost", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2620,6 +2621,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
goto out;
}
}
+ if (get_param_value(buf, sizeof(buf), "vhost", p)) {
+ nd->vhost_device = strdup(buf);
+ }
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...model", "addr", "vectors",
+ "vhost", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2777,6 +2778,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
goto out;
}
}
+ if (get_param_value(buf, sizeof(buf), "vhost", p)) {
+ nd->vhost_device = strdup(buf);
+ }
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index fc5fc17..c9c1316 100644
--- a/net.h
+++...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...model", "addr", "vectors",
+ "vhost", NULL
};
NICInfo *nd;
uint8_t *macaddr;
@@ -2777,6 +2778,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p)
goto out;
}
}
+ if (get_param_value(buf, sizeof(buf), "vhost", p)) {
+ nd->vhost_device = strdup(buf);
+ }
if (get_param_value(buf, sizeof(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index fc5fc17..c9c1316 100644
--- a/net.h
+++...