[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE4R7bBqJnKT+0Z_E8BLqsAX=g9WRtsZSgQAW2aVqcLcz4jZzg@mail.gmail.com>
Date: Tue, 14 Apr 2015 00:28:40 -0700
From: Scott Feldman <sfeldma@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: Netdev <netdev@...r.kernel.org>,
Jiří Pírko <jiri@...nulli.us>,
Roopa Prabhu <roopa@...ulusnetworks.com>,
Guenter Roeck <linux@...ck-us.net>,
"Samudrala, Sridhar" <sridhar.samudrala@...el.com>,
"Arad, Ronen" <ronen.arad@...el.com>,
"andrew@...n.ch" <andrew@...n.ch>
Subject: Re: [PATCH net-next v4 07/24] switchdev: add port vlan obj
On Mon, Apr 13, 2015 at 10:49 AM, Florian Fainelli <f.fainelli@...il.com> wrote:
> On 12/04/15 23:17, sfeldma@...il.com wrote:
>> From: Scott Feldman <sfeldma@...il.com>
>>
>> VLAN obj has flags (PVID and untagged) as well as start and end vid ranges.
>> The swdev driver can optimize programing the device using the ranges.
>>
>> Signed-off-by: Scott Feldman <sfeldma@...il.com>
>> ---
>> include/net/switchdev.h | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>>
>> diff --git a/include/net/switchdev.h b/include/net/switchdev.h
>> index f5f7733..d3cc8eb 100644
>> --- a/include/net/switchdev.h
>> +++ b/include/net/switchdev.h
>> @@ -45,12 +45,20 @@ struct fib_info;
>>
>> enum swdev_obj_id {
>> SWDEV_OBJ_UNDEFINED,
>> + SWDEV_OBJ_PORT_VLAN,
>> };
>>
>> struct swdev_obj {
>> enum swdev_obj_id id;
>> enum swdev_trans trans;
>> u32 flags;
>> + union {
>> + struct swdev_obj_vlan { /* PORT_VLAN */
>> + u16 flags;
>
> Should not we enforce some sort of definition of how we plan on using
> the "flags" member here?, if not, we might just as well remove it from
> this patch set until we actually use it?
removed in v5
--
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