[PATCH] vlan: add support for IFLA_VLAN_PROTOCOL
Thomas Graf
tgraf at suug.ch
Wed May 7 01:59:11 PDT 2014
On 05/07/14 at 12:45pm, Susant Sahani wrote:
> This patch adds support for IFLA_VLAN_PROTOCOL
>
> Signed-off-by: Susant Sahani <susant at redhat.com>
LGTM in general, the formatting seems off as it uses spaces
instead of tabs, can you fix that?
> @@ -188,6 +196,9 @@ static void vlan_dump_details(struct rtnl_link *link, struct nl_dump_params *p)
> rtnl_link_vlan_flags2str(vi->vi_flags, buf, sizeof(buf));
> nl_dump_line(p, " vlan-info id %d <%s>\n", vi->vi_vlan_id, buf);
>
> + if (vi->vi_mask & VLAN_HAS_PROTOCOL)
> + nl_dump_line(p, " vlan protocol %d:\n", vi->vi_protocol);
> +
The `:` in there seems unneeded. Perhaps merge the protocol on the
same line as the VLAN ID and print the '\n' after the protocol branch?
More information about the libnl
mailing list