[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <C8FF1995.188E2%roprabhu@cisco.com>
Date: Tue, 09 Nov 2010 15:30:29 -0800
From: roprabhu <roprabhu@...co.com>
To: Stephen Hemminger <shemminger@...tta.com>
CC: <netdev@...r.kernel.org>, <chrisw@...hat.com>,
<scofeldm@...co.com>, <arnd@...db.de>
Subject: Re: [PATCH] iproute2: add VF_PORT support
On 11/9/10 2:22 PM, "Stephen Hemminger" <shemminger@...tta.com> wrote:
> On Tue, 09 Nov 2010 14:20:11 -0800
> Roopa Prabhu <roprabhu@...co.com> wrote:
>
>> response == PORT_VDP_RESPONSE_SUCCESS ?
>> + "SUCCESS" :
>> + response == PORT_VDP_RESPONSE_INVALID_FORMAT ?
>> + "INVALID FORMAT" :
>> + response == PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES ?
>> + "INSUFFICIENT RESOURCES" :
>> + response == PORT_VDP_RESPONSE_UNUSED_VTID ?
>> + "UNUSED VTID" :
>> + response == PORT_VDP_RESPONSE_VTID_VIOLATION ?
>> + "VTID VIOLATION" :
>> + response == PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION ?
>> + "VTID VERSION VIOLATION" :
>> + response == PORT_VDP_RESPONSE_OUT_OF_SYNC ?
>> + "OUT-OF-SYNC" :
>> + response == PORT_PROFILE_RESPONSE_SUCCESS ?
>> + "SUCCESS" :
>> + response == PORT_PROFILE_RESPONSE_INPROGRESS ?
>> + "IN-PROGRESS" :
>> + response == PORT_PROFILE_RESPONSE_INVALID ?
>> + "INVALID" :
>> + response == PORT_PROFILE_RESPONSE_BADSTATE ?
>> + "BAD STATE" :
>> + response == PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES ?
>> + "INSUFFICIENT RESOURCES" :
>> + response == PORT_PROFILE_RESPONSE_ERROR ?
>> + "ERROR" :
>> + "UNKNOWN RESPONSE");
>
> That's an ugly way to do this.
> Make it a real function nor array.
Ok sounds good. Will re-spin. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists