All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH] public/io/netif.h: document a mechanism to advertise carrier state
@ 2019-12-13 13:03 Paul Durrant
  2019-12-13 14:17 ` Jürgen Groß
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Durrant @ 2019-12-13 13:03 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Paul Durrant, Konrad Rzeszutek Wilk

This patch adds a specification for a 'carrier' node in xenstore to allow
a backend to notify a frontend of it's virtual carrier/link state. E.g.
a backend that is unable to forward packets from the guest because it is
not attached to a bridge may wish to advertise 'no carrier'.

NOTE: This is purely a documentation patch. No functional change.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
---
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
---
 xen/include/public/io/netif.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/xen/include/public/io/netif.h b/xen/include/public/io/netif.h
index 2454448baa..e587055f68 100644
--- a/xen/include/public/io/netif.h
+++ b/xen/include/public/io/netif.h
@@ -190,6 +190,20 @@
  * order as requests.
  */
 
+/*
+ * Link state
+ * ==========
+ *
+ * The backend can advertise it is current link (carrier) state to the
+ * frontend using the /local/domain/X/backend/<domid>/<vif>/carrier node.
+ * If this node is not present, then the frontend should assume that the
+ * link is up (for compatibility with backends that do no implement this
+ * feature). If this node is present, then a value of "0" should be
+ * interpreted by the frontend as the link being down (no carrier) and a
+ * value of "1" should be interpreted as the link being up (carrier
+ * present).
+ */
+
 /*
  * Hash types
  * ==========
-- 
2.20.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Xen-devel] [PATCH] public/io/netif.h: document a mechanism to advertise carrier state
  2019-12-13 13:03 [Xen-devel] [PATCH] public/io/netif.h: document a mechanism to advertise carrier state Paul Durrant
@ 2019-12-13 14:17 ` Jürgen Groß
  2019-12-13 15:33   ` Durrant, Paul
  0 siblings, 1 reply; 3+ messages in thread
From: Jürgen Groß @ 2019-12-13 14:17 UTC (permalink / raw)
  To: Paul Durrant, xen-devel; +Cc: Konrad Rzeszutek Wilk

On 13.12.19 14:03, Paul Durrant wrote:
> This patch adds a specification for a 'carrier' node in xenstore to allow
> a backend to notify a frontend of it's virtual carrier/link state. E.g.
> a backend that is unable to forward packets from the guest because it is
> not attached to a bridge may wish to advertise 'no carrier'.
> 
> NOTE: This is purely a documentation patch. No functional change.
> 
> Signed-off-by: Paul Durrant <pdurrant@amazon.com>
> ---
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: Juergen Gross <jgross@suse.com>
> ---
>   xen/include/public/io/netif.h | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
> 
> diff --git a/xen/include/public/io/netif.h b/xen/include/public/io/netif.h
> index 2454448baa..e587055f68 100644
> --- a/xen/include/public/io/netif.h
> +++ b/xen/include/public/io/netif.h
> @@ -190,6 +190,20 @@
>    * order as requests.
>    */
>   
> +/*
> + * Link state
> + * ==========
> + *
> + * The backend can advertise it is current link (carrier) state to the

s/it is/its/ ?

> + * frontend using the /local/domain/X/backend/<domid>/<vif>/carrier node.

Hmm, I just realized that the other mentioned backend path in this file
is wrong, it should be: /local/domain/X/backend/vif/<domid>/<vif>/...

Mind correcting that in your patch, too?

> + * If this node is not present, then the frontend should assume that the
> + * link is up (for compatibility with backends that do no implement this
> + * feature). If this node is present, then a value of "0" should be
> + * interpreted by the frontend as the link being down (no carrier) and a
> + * value of "1" should be interpreted as the link being up (carrier
> + * present).
> + */
> +


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xen-devel] [PATCH] public/io/netif.h: document a mechanism to advertise carrier state
  2019-12-13 14:17 ` Jürgen Groß
@ 2019-12-13 15:33   ` Durrant, Paul
  0 siblings, 0 replies; 3+ messages in thread
From: Durrant, Paul @ 2019-12-13 15:33 UTC (permalink / raw)
  To: Jürgen Groß, xen-devel@lists.xenproject.org
  Cc: Konrad Rzeszutek Wilk

> -----Original Message-----
> From: Jürgen Groß <jgross@suse.com>
> Sent: 13 December 2019 14:17
> To: Durrant, Paul <pdurrant@amazon.com>; xen-devel@lists.xenproject.org
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Subject: Re: [PATCH] public/io/netif.h: document a mechanism to advertise
> carrier state
> 
> On 13.12.19 14:03, Paul Durrant wrote:
> > This patch adds a specification for a 'carrier' node in xenstore to
> allow
> > a backend to notify a frontend of it's virtual carrier/link state. E.g.
> > a backend that is unable to forward packets from the guest because it is
> > not attached to a bridge may wish to advertise 'no carrier'.
> >
> > NOTE: This is purely a documentation patch. No functional change.
> >
> > Signed-off-by: Paul Durrant <pdurrant@amazon.com>
> > ---
> > Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > Cc: Juergen Gross <jgross@suse.com>
> > ---
> >   xen/include/public/io/netif.h | 14 ++++++++++++++
> >   1 file changed, 14 insertions(+)
> >
> > diff --git a/xen/include/public/io/netif.h
> b/xen/include/public/io/netif.h
> > index 2454448baa..e587055f68 100644
> > --- a/xen/include/public/io/netif.h
> > +++ b/xen/include/public/io/netif.h
> > @@ -190,6 +190,20 @@
> >    * order as requests.
> >    */
> >
> > +/*
> > + * Link state
> > + * ==========
> > + *
> > + * The backend can advertise it is current link (carrier) state to the
> 
> s/it is/its/ ?
> 

Oh yes.

> > + * frontend using the /local/domain/X/backend/<domid>/<vif>/carrier
> node.
> 
> Hmm, I just realized that the other mentioned backend path in this file
> is wrong, it should be: /local/domain/X/backend/vif/<domid>/<vif>/...
> 
> Mind correcting that in your patch, too?
> 

Sure.

  Paul
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-13 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-13 13:03 [Xen-devel] [PATCH] public/io/netif.h: document a mechanism to advertise carrier state Paul Durrant
2019-12-13 14:17 ` Jürgen Groß
2019-12-13 15:33   ` Durrant, Paul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.