Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752518AbdDDH4N (ORCPT ); Tue, 4 Apr 2017 03:56:13 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:34644 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbdDDH4L (ORCPT ); Tue, 4 Apr 2017 03:56:11 -0400 Date: Tue, 4 Apr 2017 09:56:04 +0200 From: Corentin Labbe To: Andrew Lunn Cc: davem@davemloft.net, shuah@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] selftests: add a generic testsuite for ethernet device Message-ID: <20170404075604.GA13800@Red> References: <20170331125752.20074-1-clabbe.montjoie@gmail.com> <20170331125752.20074-2-clabbe.montjoie@gmail.com> <20170331141241.GH22609@lunn.ch> <20170403131526.GC30824@Red> <20170403132741.GC17550@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170403132741.GC17550@lunn.ch> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 648 Lines: 16 On Mon, Apr 03, 2017 at 03:27:41PM +0200, Andrew Lunn wrote: > > By ifnum, you mean by the order that "ip link" gives ? > > I've not checked if it remains in order as interfaces are hot > plugged/unplugged. But i guess you are running tests direct after > boot, and unplugs/replugs are unlikely? > Yes the ideal run is just after boot, but the test need to succeed in all case. For handling vlan, I think the best way is to detect the master interface by looking the "@master". So when testing a vlan interface, the test would just up also the masteri interface. So I will drop using "ls /sys/clas/net/" and directly use output of ip Regards