From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH] gianfar: Add gfar_change_carrier() Date: Thu, 6 Dec 2018 20:43:17 +0100 Message-ID: <20181206194317.GK18674@lunn.ch> References: <20181206153125.5649-1-joakim.tjernlund@infinera.com> <20181206154734.GF18674@lunn.ch> <20181206162131.GG18674@lunn.ch> <20181206165419.GI18674@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "claudiu.manoil@nxp.com" , "netdev@vger.kernel.org" To: Joakim Tjernlund Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:36674 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbeLFTnV (ORCPT ); Thu, 6 Dec 2018 14:43:21 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > I can have a look at using dormant, but what is change_carrier > supposed to do if not this? It is intended for interfaces which are stacked, like the team driver, and for devices which don't have a phy, e.g. tun, and dummy. > I didn't find a tool for DORMANT, I guess i will have to write one > myself(using SIOCGIFFLAGS, SIOCSIFFLAGS)? ip link should be able to set it. Try ip link set mode dormant dev eth0 Andrew