[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170727193755.34e055ea@cakuba.netronome.com>
Date: Thu, 27 Jul 2017 19:37:55 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Or Gerlitz <gerlitz.or@...il.com>
Cc: Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org,
Or Gerlitz <ogerlitz@...lanox.com>,
Michael Chan <michael.chan@...adcom.com>,
Sathya Perla <sathya.perla@...adcom.com>,
David Miller <davem@...emloft.net>, simon.horman@...ronome.com
Subject: Re: [RFC] switchdev: generate phys_port_name in the core
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;
> +}
> +
Powered by blists - more mailing lists