Subject: Re: [RFC PATCH net-next 0/4] switchdev: avoid duplicate packet forwarding

From: Jamal Hadi Salim <[email-masked]>
Date: Wed, 17 Jun 2015 06:23:41 -0400

On 06/16/15 17:11, Jiri Pirko wrote:
> Tue, Jun 16, 2015 at 06:47:47PM CEST, [email-masked] wrote:
>> On Mon, Jun 15, 2015 at 11:04 PM, Jiri Pirko <[email-masked]> wrote:

>> So what we need is a unique mark for device ports within a fwding
>> group, such as a bridge.
>
> Yep, have a group of netdevs, pick one of them and use it's ifindex for
> the whole group.
>

Have you look at the netdev group attribute?
Typically user space sets the value and then you can perform operations
per group of netdevs. You could argue that the field is for user space
to dictate in some policy therefore may be slightly unsuited
for what you are after maybe?

cheers,
jamal