Thread (7 messages) 7 messages, 4 authors, 2014-11-28

Re: [PATCH net-next] bridge: add vlan id to mdb notifications

From: Roopa Prabhu <hidden>
Date: 2014-11-26 20:40:10

On 11/26/14, 10:56 AM, Stephen Hemminger wrote:
On Wed, 26 Nov 2014 05:53:33 -0800
roopa@cumulusnetworks.com wrote:
quoted
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
index da17e45..db061fd 100644
--- a/include/uapi/linux/if_bridge.h
+++ b/include/uapi/linux/if_bridge.h
@@ -185,6 +185,7 @@ struct br_mdb_entry {
  			struct in6_addr ip6;
  		} u;
  		__be16		proto;
+		__be16		vid;
  	} addr;
  };
  
You can't add fields to existing binary API
Ack,  we know the concern..., The fact that it was not changing the size 
of the struct (due to existing padding and i verified that it worked 
with an older iproute2), we wanted to get the patch out and get some 
feedback.

Getting the vlan in the notification is imp and the only other option I 
see is to add a new netlink attribute in the mdb msg.

I have always wondered, if binary netlink attributes have this 
restriction, they should be discouraged. especially when the other 
extensible option is to add them as a separate netlink attribute.

Thanks for the review.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help