[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE4R7bCQHcR4Ne-ssCRRvw0czKxRJfykcBFY6c_9haRF3pRJYA@mail.gmail.com>
Date: Thu, 5 Mar 2015 12:06:01 -0800
From: Scott Feldman <sfeldma@...il.com>
To: roopa <roopa@...ulusnetworks.com>
Cc: Jiri Pirko <jiri@...nulli.us>, Netdev <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH net-next] rocker: check for BRIDGE_FLAGS_SELF in bridge
setlink handler
On Thu, Mar 5, 2015 at 6:55 AM, roopa <roopa@...ulusnetworks.com> wrote:
> On 3/5/15, 12:02 AM, Jiri Pirko wrote:
>>
>> Wed, Mar 04, 2015 at 09:51:20AM CET, roopa@...ulusnetworks.com wrote:
>>>
>>> On 3/3/15, 11:02 PM, Scott Feldman wrote:
[cut]
>>>> Rocker setlink wasn't broken prior to the NETIF_F_HW_SWITCH_OFFLOAD
>>>> patches.
>>>> Now it is,
>>>
>>> sure, I can submit a patch to remove the flag on rocker ports if thats
>>> what
>>> you prefer.
>>
>> I don't believe that Scott prefers that. The offload flag is there not
>> only for this case, but also for many future switch offloading cases.
>
> I very well understand that.
>>
>> Rocker port have to have that port set by default. I do not really
>> understand why you suggest removing it...
>>
> I was just making sure scott is on board with the use of the flag.
> I added it on rocker ports for l2 and learning might be broken because of
> that. Which i am trying to fix.
> also, scotts l3 patches dont seem to use the flag.
That's an oversight due to work starting on L3 patches way before
NETIF_F_HW_SWITCH_OFFLOAD was introduced ; I'll add checks for that
flag to the L3 patches.
> So, if the patch in this thread is not the right way to fix it..,.i was just
> trying to give scott an option to remove the flag to keep l2 working and for
> him to bring back the flag when he is ready.
When I'm ready for what? I ready for it to work like it did before
NETIF_F_HW_SWITCH_OFFLOAD and your setlink changes went in. ;-)
We want two sets of IFLA_PROTINFO attrs for a bridge port. The first
set is the bridge side of the port, so these attrs like learning or
flooding control the how the bridge (software) manages the port. The
second set is the device side of the port, so attrs here control how
the (offload) device manages the port. The two sets are independent.
For example, you could have learning turned OFF on the bridge side and
learning turned ON on the device side. The device side will
initialize its set. The bridge will initialize its set. The user
can see both sets with cmd
bridge -d link show.
The user can set the bridge's attr with one of cmds:
bridge link set <attr> dev <port>
bridge link set <attr> dev <port> master
The user can set the device's attr with cmd:
bridge link set <attr> dev <port> self
The driver setlink/getlink ops should only be called in the SELF
context because the driver is the SELF side of the port. Somehow we
got away from that. We talked about IFLA_AF_SPEC being handled
differently for VLANs. For IFLA_PROTINFO, what do we need to get back
to what I have above?
-scott
--
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