[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v2 4/4] tools/hotplug: modify set_mtu() to inform the frontend via xenstore


  • To: "paul@xxxxxxx" <paul@xxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxx>
  • Date: Wed, 5 Aug 2020 10:30:42 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, 'Paul Durrant' <pdurrant@xxxxxxxxxx>, 'Wei Liu' <wl@xxxxxxx>
  • Delivery-date: Wed, 05 Aug 2020 09:31:07 +0000
  • Ironport-sdr: wFrC9A4r2LswraUKLm6BfTo3aXG1nTqddDLyedpxW0n5MQua+NYGBAKQ6eJaM/4R8LDM4IcaaX TcHE5GC7zGfDFYPNKGxpTqfgRAEmdNSx2/RtVT97nD7aKaOFIF2Jvji/tP7MlwHaXQqmJlnAth B5uKikGtlbdUuam2F+I27x7tHmw6ApqDlf0ak8Yr/8L3n0MpTjLTa5iuJjsAW8EJVTY7xGmrbB WFVpCcp6csVHuEEhUirtmgYqLFQ76k5Wx/kzsMOsgbAks8xkY6CG7+DxFrMNrXEgNKOIs2/+oh CUM=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Paul Durrant writes ("RE: [PATCH v2 4/4] tools/hotplug: modify set_mtu() to 
inform the frontend via xenstore"):
> > -----Original Message-----
> > From: Ian Jackson <ian.jackson@xxxxxxxxxx>
...
> > Actually.
> > 
> > This shouldn't be in the frontend at all, should it ?  In general the
> > backend writes to the backend and the frontend to the frontend.
> > 
> > So maybe I need to take back my R-b of
> >   [PATCH v2 3/4] public/io/netif: specify MTU override node
> > 
> > Sorry for the confusion.  I seem rather undercaffienated today.
> 
> Too late. The xenstore node has been used by Windows frontends for the best 
> part of a decade so we can't practically change the
> path. Another way would be to also modify netback to simply echo the value 
> from backend into frontend, but that seems rather
> pointless.

Hmm.  How does this interact with driver domains ?  I think a driver
domain might not have write access to this node.

Is there a value we can store in it that won't break these Windows
frontends, that libxl in the toolstack domain could write, before the
hotplug script runs in the driver domain ?

> Interestingly libxl does define an 'mtu' field for libxl_device_nic, which it 
> sets to 1492 in libxl__device_nic_setdefault() but
> never writes it into xenstore. There is even a comment:
> 
> /* nic->mtu = */
> 
> in libxl__nic_from_xenstore() which implies it should have been there, but 
> isn't.
> I still think picking up the MTU from the bridge is the better way though. 

I agree that the default should come from the bridge.  Ideally there
would be a way to override it in the config.

Thanks,
Ian.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.