[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140825.173611.1629035794825074435.davem@davemloft.net>
Date: Mon, 25 Aug 2014 17:36:11 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: cwang@...pensource.com
Cc: jiri@...nulli.us, netdev@...r.kernel.org, fbl@...hat.com,
erik.hugne@...csson.com
Subject: Re: [patch net-next] team: set IFF_TEAM_PORT priv_flag after
rx_handler is registered
From: Cong Wang <cwang@...pensource.com>
Date: Mon, 25 Aug 2014 14:11:15 -0700
> On Mon, Aug 25, 2014 at 12:38 PM, Jiri Pirko <jiri@...nulli.us> wrote:
>> When one tries to add eth as a port into team and that eth is already in
>> use by other rx_handler device (macvlan, bond, bridge, ...) a bug in
>> team_port_add() causes that IFF_TEAM_PORT flag is set before rx_handler
>> is registered. In between, netdev nofifier is called and
>> team_device_event() sees IFF_TEAM_PORT and thinks that rx_handler_data
>> pointer is set to team_port. But it isn't.
>>
>> Fix this by reordering rx_handler register and IFF_TEAM_PORT priv flag
>> set so it is very similar to how bonding does this.
>>
>> Reported-by: Erik Hugne <erik.hugne@...csson.com>
>> Introduced-by: 3d249d4ca7 "net: introduce ethernet teaming device"
>> Signed-off-by: Jiri Pirko <jiri@...nulli.us>
>
> For consistence, we use "Fixes:" instead of "Introduced-by:".
> Just fyi.
I fixed this up and applied the patch, 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