Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932738AbbKCV6l (ORCPT ); Tue, 3 Nov 2015 16:58:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbbKCV6k (ORCPT ); Tue, 3 Nov 2015 16:58:40 -0500 Message-ID: <56392E0C.1030509@redhat.com> Date: Tue, 03 Nov 2015 16:58:36 -0500 From: Jarod Wilson User-Agent: Postbox 4.0.7 (Macintosh/20151021) MIME-Version: 1.0 To: Michal Kubecek CC: linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Jiri Pirko , Nikolay Aleksandrov , Alexander Duyck , netdev@vger.kernel.org Subject: Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs References: <1446519359-21400-1-git-send-email-jarod@redhat.com> <1446583017-19021-1-git-send-email-jarod@redhat.com> <20151103215310.GA7839@unicorn.suse.cz> In-Reply-To: <20151103215310.GA7839@unicorn.suse.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1449 Lines: 31 Michal Kubecek wrote: > On Tue, Nov 03, 2015 at 03:36:57PM -0500, Jarod Wilson wrote: >> With moving netdev_sync_lower_features() after the .ndo_set_features >> calls, I neglected to verify that devices added *after* a flag had been >> disabled on an upper device were properly added with that flag disabled as >> well. This currently happens, because we exit __netdev_update_features() >> when we see dev->features == features for the upper dev. We can retain the >> optimization of leaving without calling .ndo_set_features with a bit of >> tweaking and a goto here. > > I haven't reviewed the patch yet (I'm going to take a look with fresher > mind in the morning) but if you are going to handle this in a generic > way, you may want to remove the LRO specific hacks added to > bond_enslave() and team_port_add() by commit fbe168ba91f7 ("net: generic > dev_disable_lro() stacked device handling"). Yeah, that's on tap for a follow-up series. I wanted to get all this in first and soaked before pulling those bits out. My current haven't-yet-fully-investigated thinking is that dev_disable_lro() can go away entirely, not just the hacks added to bond and team. -- Jarod Wilson jarod@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/