Skip to contentSkip to conversation

public/io/netif.h: move and amend multicast control documentation

PATCH Applied Paul Durrant 3 participants 4 messages Sep 2, 2015 – Sep 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 public/io/netif.h: move and amend multicast control documentation

netif.h contains a specification of the XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL} extra info messages require to manipulate a multicast filter list maintained by a backend and specifies the xenstore negotiation protocol in a comment just above the structure defintion, which is easy to miss.

This patch moves the documentation of the xenstore negotiation to be co-located with the documentation for other features and also amends the wording to be clearer.

Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Keir Fraser <[email protected]>
Cc Tim Deegan <[email protected]>
---
 xen/include/public/io/netif.h |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
xen/include/public/io/netif.h +14 -8
index 353eab7..dfd0412 100644
@@ -136,6 +136,20 @@
  */
 
 /*
+ * "feature-multicast-control" advertises the capability to filter ethernet
+ * multicast packets in the backend. To enable use of this capability the
+ * frontend must set "request-multicast-control" before moving into the
+ * connected state.
+ * If "request-multicast-control" is set then the backend transmit side should
+ * no longer flood multicast packets to the frontend, it should instead drop any
+ * multicast packet that does not match in a filter list. The list is
+ * amended by the frontend by sending dummy transmit requests containing
+ * XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL} extra-info fragments as specified below.
+ * Once enabled by the frontend, the feature cannot be disabled except by
+ * closing and re-connecting to the backend.
+ */
+
+/*
  * This is the 'wire' format for packets:
  *  Request 1: netif_tx_request_t -- NETTXF_* (any flags)
  * [Request 2: netif_extra_info_t] (only if request 1 has NETTXF_extra_info)
@@ -341,14 +355,6 @@ struct netif_extra_info {
 
         /*
          * XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL}:
-         * Backend advertises availability via 'feature-multicast-control'
-         * xenbus node containing value '1'.
-         * Frontend requests this feature by advertising
-         * 'request-multicast-control' xenbus node containing value '1'.
-         * If multicast control is requested then multicast flooding is
-         * disabled and the frontend must explicitly register its interest
-         * in multicast groups using dummy transmit requests containing
-         * MCAST_{ADD,DEL} extra-info fragments.
          */
         struct {
             uint8_t addr[6]; /* Address to add/remove. */
Signature · 1 line
1.7.10.4
Acked-by on v2 1/1
#1 lore raw
Quoted 9 lines · Paul Durrant

netif.h contains a specification of the XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL} extra info messages require to manipulate a multicast filter list maintained by a backend and specifies the xenstore negotiation protocol in a comment just above the structure defintion, which is easy to miss.

This patch moves the documentation of the xenstore negotiation to be co-located with the documentation for other features and also amends the wording to be clearer.

Quoted 6 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Keir Fraser <[email protected]>
Cc Tim Deegan <[email protected]>
Quoted 9 lines
---
 xen/include/public/io/netif.h |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
xen/include/public/io/netif.h +0 -0
index 353eab7..dfd0412 100644

xen/include/public/io/netif.h line 142

Quoted 7 lines
xen/include/public/io/netif.h +4 -0
@@ -136,6 +136,20 @@
  */
 
 /*
+ * "feature-multicast-control" advertises the capability to filter ethernet
+ * multicast packets in the backend. To enable use of this capability the
+ * frontend must set "request-multicast-control" before moving into the
+ * connected state.

I would prefer adding a blank line here if possible.

Quoted 36 lines
xen/include/public/io/netif.h +10 -8
+ * If "request-multicast-control" is set then the backend transmit side should
+ * no longer flood multicast packets to the frontend, it should instead drop any
+ * multicast packet that does not match in a filter list. The list is
+ * amended by the frontend by sending dummy transmit requests containing
+ * XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL} extra-info fragments as specified below.
+ * Once enabled by the frontend, the feature cannot be disabled except by
+ * closing and re-connecting to the backend.
+ */
+
+/*
  * This is the 'wire' format for packets:
  *  Request 1: netif_tx_request_t -- NETTXF_* (any flags)
  * [Request 2: netif_extra_info_t] (only if request 1 has NETTXF_extra_info)
@@ -341,14 +355,6 @@ struct netif_extra_info {
 
         /*
          * XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL}:
-         * Backend advertises availability via 'feature-multicast-control'
-         * xenbus node containing value '1'.
-         * Frontend requests this feature by advertising
-         * 'request-multicast-control' xenbus node containing value '1'.
-         * If multicast control is requested then multicast flooding is
-         * disabled and the frontend must explicitly register its interest
-         * in multicast groups using dummy transmit requests containing
-         * MCAST_{ADD,DEL} extra-info fragments.
          */
         struct {
             uint8_t addr[6]; /* Address to add/remove. */
Signature · 7 lines
1.7.10.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Applied
#2 lore raw
Quoted 14 lines · Wei Liu
Quoted 13 lines · Paul Durrant

netif.h contains a specification of the XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL}
extra info messages require to manipulate a multicast filter list maintained
by a backend and specifies the xenstore negotiation protocol in a comment
just above the structure defintion, which is easy to miss.

This patch moves the documentation of the xenstore negotiation to be co-located with the documentation for other features and also amends the
wording to be clearer.

Quoted 8 lines
Quoted 6 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Keir Fraser <[email protected]>
Cc Tim Deegan <[email protected]>

Applied, with:

Quoted 3 lines
Quoted 1 line

+ * connected state.

I would prefer adding a blank line here if possible.

"\n *" added.

#3 lore raw
Quoted 33 lines

-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: 04 September 2015 15:42
To: Wei Liu; Paul Durrant
Cc: [email protected]; Keir (Xen.org); Tim (Xen.org); Ian Jackson; Jan Beulich
Subject: Re: [Xen-devel] [PATCH v2] public/io/netif.h: move and amend multicast control documentation

Quoted 14 lines · Wei Liu
Quoted 13 lines · Paul Durrant

netif.h contains a specification of the XEN_NETIF_EXTRA_TYPE_MCAST_{ADD,DEL}
extra info messages require to manipulate a multicast filter list maintained
by a backend and specifies the xenstore negotiation protocol in a comment
just above the structure defintion, which is easy to miss.

This patch moves the documentation of the xenstore negotiation to be co-located with the documentation for other features and also amends the
wording to be clearer.

Quoted 8 lines
Quoted 6 lines
Cc Ian Campbell <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Keir Fraser <[email protected]>
Cc Tim Deegan <[email protected]>
Quoted 7 lines

Applied, with:

Quoted 3 lines
Quoted 1 line

+ * connected state.

I would prefer adding a blank line here if possible.

"\n *" added.

Cool. Thanks,

Paul