Thread (38 messages) 38 messages, 10 authors, 2017-07-28

Re: [RFC] switchdev: generate phys_port_name in the core

From: Jakub Kicinski <hidden>
Date: 2017-07-28 02:37:58

On Thu, 27 Jul 2017 19:31:22 -0700, Jakub Kicinski wrote:
+static size_t rtnl_port_info_size(void)
+{
+	size_t port_info_size = nla_total_size(0) + /* nest IFLA_PORT_INFO */
				nla_total_size(4) + /* TYPE */
+				nla_total_size(4) + /* EXTERNAL_ID or PF_ID */
+				nla_total_size(4);  /* SPLIT_ID or VF_ID*/
+
+	return port_info_size;
+}
+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help