|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] vif rate dynamically change proposal
Good morning every one,
I decided to change the code so it would be possible the change it dynamically the code change will affect this file "DOM0/drivers/xen/netback/xenbus.c" for the moment the rate is fixed inside the connect function
static void connect(struct backend_info *be) { ... if (err) { xenbus_dev_fatal(dev, err, "parsing %s/mac", dev->nodename); return; }
xen_net_read_rate(dev, &be->netif->credit_bytes, &be->netif->credit_usec); be->netif->remaining_credit = be->netif->credit_bytes; ...
I want to add a function that read the rate dynamically from a /proc file but to change rate i need to have a pointer to the backend_info struct or a least to xen_netif one so i can change in the netback.c file in function
static bool tx_credit_exceeded(struct xen_netif *netif, unsigned size) and static void tx_add_credit(struct xen_netif *netif) to impose readinh the value of crdit bye ans credit_usec from proc
so my questions are : 1- is it a good way to send new rate values from proc file ? 2-how to get pointer to correct xen_netif from vif name
thanks in advance for an respoonse concerning any question.
|
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|