[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] fix invalid frontend path for set_mtu
Hi Anthony, On Tue, Apr 12, 2022 at 02:03:17PM +0100, Anthony PERARD wrote: > Hi James, > > On Tue, Mar 01, 2022 at 09:35:13AM +0000, James Dingwall wrote: > > The set_mtu() function of xen-network-common.sh currently has this code: > > > > if [ ${type_if} = vif ] > > then > > local dev_=${dev#vif} > > local domid=${dev_%.*} > > local devid=${dev_#*.} > > > > local FRONTEND_PATH="/local/domain/$domid/device/vif/$devid" > > > > xenstore_write "$FRONTEND_PATH/mtu" ${mtu} > > fi > > > > This works fine if the device has its default name but if the xen config > > defines the vifname parameter the FRONTEND_PATH is incorrectly constructed. > > Learn the frontend path by reading the appropriate value from the backend. > > The patch looks fine, thanks. It is only missing a line > "Signed-off-by: your_name <your_email>" at the end of the description. > The meaning of this line is described in the file CONTRIBUTING, section > "Developer's Certificate of Origin". > Thank you for your feedback. I've updated the patch as suggested. I've also incorporated two other changes, one is a simple style change for consistency, the other is to change a the test for a valid mtu from > 0 to >= 68. I can resubmit the original patch if either of these are a problem. Thanks, James Attachment:
xen-network-common-frontend.patch
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |