[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180327082854.57e7e865@xeon-e3>
Date: Tue, 27 Mar 2018 08:28:54 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, davem@...emloft.net, idosch@...lanox.com,
jakub.kicinski@...ronome.com, mlxsw@...lanox.com, andrew@...n.ch,
vivien.didelot@...oirfairelinux.com, f.fainelli@...il.com,
michael.chan@...adcom.com, ganeshgr@...lsio.com,
saeedm@...lanox.com, simon.horman@...ronome.com,
pieter.jansenvanvuuren@...ronome.com, john.hurley@...ronome.com,
dirk.vandermerwe@...ronome.com, alexander.h.duyck@...el.com,
ogerlitz@...lanox.com, dsahern@...il.com, vijaya.guvva@...ium.com,
satananda.burla@...ium.com, raghu.vatsavayi@...ium.com,
felix.manlunas@...ium.com, gospo@...adcom.com,
sathya.perla@...adcom.com, vasundhara-v.volam@...adcom.com,
tariqt@...lanox.com, eranbe@...lanox.com,
jeffrey.t.kirsher@...el.com
Subject: Re: [patch iproute2 rfc 1/2] devlink: introduce support for showing
port flavours
On Fri, 23 Mar 2018 07:35:57 +0100
Jiri Pirko <jiri@...nulli.us> wrote:
> +static const char *port_flavour_name(uint16_t flavour)
> +{
> + switch (flavour) {
> + case DEVLINK_PORT_FLAVOUR_PHYSICAL: return "physical";
> + case DEVLINK_PORT_FLAVOUR_PF_REP: return "pf_rep";
> + case DEVLINK_PORT_FLAVOUR_VF_REP: return "vf_rep";
> + default: return "<unknown flavour>";
> + }
> +}
> +
need to break lines even in switch statement.
Powered by blists - more mailing lists