From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert P. J. Day" Subject: for newbies, it would be useful to document values of netdev_state_t Date: Sat, 4 Aug 2018 11:30:37 -0400 (EDT) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: Linux kernel ntedev mailing list Return-path: Received: from cpanel4.indieserve.net ([199.212.143.9]:58722 "EHLO cpanel4.indieserve.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727481AbeHDRdF (ORCPT ); Sat, 4 Aug 2018 13:33:05 -0400 Received: from cpef81d0f814063-cmf81d0f814060.cpe.net.cable.rogers.com ([174.114.57.56]:43570 helo=localhost.localdomain) by cpanel4.indieserve.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1flyXA-00Gupq-EJ for netdev@vger.kernel.org; Sat, 04 Aug 2018 11:32:01 -0400 Sender: netdev-owner@vger.kernel.org List-ID: i'm sure this is second nature for the experts here, but in netdevice.h: /* These flag bits are private to the generic network queueing * layer; they may not be explicitly referenced by any other * code. */ enum netdev_state_t { __LINK_STATE_START, __LINK_STATE_PRESENT, __LINK_STATE_NOCARRIER, __LINK_STATE_LINKWATCH_PENDING, __LINK_STATE_DORMANT, }; it would be handy to have a short explanation of what each state represents, perhaps what combinations are possible and how one moves from one state to another. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================