* confusing comment, explanation of @IFF_RUNNING in if.h
@ 2018-08-26 8:13 Robert P. J. Day
2018-08-26 19:20 ` Andrew Lunn
0 siblings, 1 reply; 9+ messages in thread
From: Robert P. J. Day @ 2018-08-26 8:13 UTC (permalink / raw)
To: Linux kernel netdev mailing list
more annoying pedantry ... from include/uapi/linux/if.h:
* @IFF_RUNNING: interface RFC2863 OPER_UP. Volatile.
however, both the code in net/core/dev.c:
/**
* netif_oper_up - test if device is operational
* @dev: network device
*
* Check if carrier is operational
*/
static inline bool netif_oper_up(const struct net_device *dev)
{
return (dev->operstate == IF_OPER_UP ||
dev->operstate == IF_OPER_UNKNOWN /* backward compat */);
}
and the explanation in operstates.txt:
ifinfomsg::if_flags & IFF_RUNNING:
Interface is in RFC2863 operational state UP or UNKNOWN.
suggests IFF_RUNNING represents *either* of the operational states UP
or UNKNOWN, not just UP as the comment in if.h claims. is this
misleading? or is this a deliberate explanation somehow taking into
account that the UNKNOWN state is for backward compatibility (whatever
that means)?
i ask since, in my testing, when the interface should have been up,
the attribute file "operstate" for that interface showed "unknown",
and i wondered how worried i should be about that.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca/dokuwiki
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-26 8:13 confusing comment, explanation of @IFF_RUNNING in if.h Robert P. J. Day @ 2018-08-26 19:20 ` Andrew Lunn 2018-08-26 19:20 ` Robert P. J. Day 0 siblings, 1 reply; 9+ messages in thread From: Andrew Lunn @ 2018-08-26 19:20 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Linux kernel netdev mailing list > i ask since, in my testing, when the interface should have been up, > the attribute file "operstate" for that interface showed "unknown", > and i wondered how worried i should be about that. Hi Robert You should probably post the driver for review. A well written driver should not even need to care about any of this. phylib and the netdev driver code does all the work. It only gets interesting when you don't have a PHY, e.g. a stacked device, like bonding, or a virtual device like tun/tap. Andrew ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-26 19:20 ` Andrew Lunn @ 2018-08-26 19:20 ` Robert P. J. Day 2018-08-26 19:28 ` Andrew Lunn 2018-08-26 20:51 ` Stephen Hemminger 0 siblings, 2 replies; 9+ messages in thread From: Robert P. J. Day @ 2018-08-26 19:20 UTC (permalink / raw) To: Andrew Lunn; +Cc: Linux kernel netdev mailing list On Sun, 26 Aug 2018, Andrew Lunn wrote: > > i ask since, in my testing, when the interface should have been > > up, the attribute file "operstate" for that interface showed > > "unknown", and i wondered how worried i should be about that. > > Hi Robert > > You should probably post the driver for review. A well written > driver should not even need to care about any of this. phylib and > the netdev driver code does all the work. It only gets interesting > when you don't have a PHY, e.g. a stacked device, like bonding, or a > virtual device like tun/tap. i wish, but i'm on contract, and proprietary, and NDA and all that. so i am reduced to crawling through the code, trying to figure out what is misconfigured that is causing all this grief. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-26 19:20 ` Robert P. J. Day @ 2018-08-26 19:28 ` Andrew Lunn 2018-08-26 19:30 ` Robert P. J. Day 2018-08-26 20:51 ` Stephen Hemminger 1 sibling, 1 reply; 9+ messages in thread From: Andrew Lunn @ 2018-08-26 19:28 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Linux kernel netdev mailing list On Sun, Aug 26, 2018 at 03:20:24PM -0400, Robert P. J. Day wrote: > On Sun, 26 Aug 2018, Andrew Lunn wrote: > > > > i ask since, in my testing, when the interface should have been > > > up, the attribute file "operstate" for that interface showed > > > "unknown", and i wondered how worried i should be about that. > > > > Hi Robert > > > > You should probably post the driver for review. A well written > > driver should not even need to care about any of this. phylib and > > the netdev driver code does all the work. It only gets interesting > > when you don't have a PHY, e.g. a stacked device, like bonding, or a > > virtual device like tun/tap. > > i wish, but i'm on contract, and proprietary, and NDA and all that. > so i am reduced to crawling through the code, trying to figure out > what is misconfigured that is causing all this grief. I would say proprietary and NDA is causing you all this grief. There is also the point that if you are not going to contribute the code to mainline, why should we help you? The code is GPL after all, so you can post it. Andrew ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-26 19:28 ` Andrew Lunn @ 2018-08-26 19:30 ` Robert P. J. Day 0 siblings, 0 replies; 9+ messages in thread From: Robert P. J. Day @ 2018-08-26 19:30 UTC (permalink / raw) To: Andrew Lunn; +Cc: Linux kernel netdev mailing list On Sun, 26 Aug 2018, Andrew Lunn wrote: > On Sun, Aug 26, 2018 at 03:20:24PM -0400, Robert P. J. Day wrote: > > On Sun, 26 Aug 2018, Andrew Lunn wrote: > > > > > > i ask since, in my testing, when the interface should have been > > > > up, the attribute file "operstate" for that interface showed > > > > "unknown", and i wondered how worried i should be about that. > > > > > > Hi Robert > > > > > > You should probably post the driver for review. A well written > > > driver should not even need to care about any of this. phylib and > > > the netdev driver code does all the work. It only gets interesting > > > when you don't have a PHY, e.g. a stacked device, like bonding, or a > > > virtual device like tun/tap. > > > > i wish, but i'm on contract, and proprietary, and NDA and all that. > > so i am reduced to crawling through the code, trying to figure out > > what is misconfigured that is causing all this grief. > > I would say proprietary and NDA is causing you all this grief. > > There is also the point that if you are not going to contribute the > code to mainline, why should we help you? > > The code is GPL after all, so you can post it. i'm confident that it will *eventually* be GPLed (i can't imagine there is any other outcome), but for now, there's nothing i can do. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-26 19:20 ` Robert P. J. Day 2018-08-26 19:28 ` Andrew Lunn @ 2018-08-26 20:51 ` Stephen Hemminger 2018-08-27 6:20 ` Robert P. J. Day 1 sibling, 1 reply; 9+ messages in thread From: Stephen Hemminger @ 2018-08-26 20:51 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Andrew Lunn, Linux kernel netdev mailing list On Sun, 26 Aug 2018 15:20:24 -0400 (EDT) "Robert P. J. Day" <rpjday@crashcourse.ca> wrote: > On Sun, 26 Aug 2018, Andrew Lunn wrote: > > > > i ask since, in my testing, when the interface should have been > > > up, the attribute file "operstate" for that interface showed > > > "unknown", and i wondered how worried i should be about that. > > > > Hi Robert > > > > You should probably post the driver for review. A well written > > driver should not even need to care about any of this. phylib and > > the netdev driver code does all the work. It only gets interesting > > when you don't have a PHY, e.g. a stacked device, like bonding, or a > > virtual device like tun/tap. > > i wish, but i'm on contract, and proprietary, and NDA and all that. > so i am reduced to crawling through the code, trying to figure out > what is misconfigured that is causing all this grief. > > rday > So you expect FOSS developers to help you with proprietary licensed driver. Good Luck with that. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-26 20:51 ` Stephen Hemminger @ 2018-08-27 6:20 ` Robert P. J. Day 2018-08-27 7:11 ` Oliver Hartkopp 0 siblings, 1 reply; 9+ messages in thread From: Robert P. J. Day @ 2018-08-27 6:20 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Andrew Lunn, Linux kernel netdev mailing list On Sun, 26 Aug 2018, Stephen Hemminger wrote: > On Sun, 26 Aug 2018 15:20:24 -0400 (EDT) > "Robert P. J. Day" <rpjday@crashcourse.ca> wrote: > > > On Sun, 26 Aug 2018, Andrew Lunn wrote: > > > > > > i ask since, in my testing, when the interface should have been > > > > up, the attribute file "operstate" for that interface showed > > > > "unknown", and i wondered how worried i should be about that. > > > > > > Hi Robert > > > > > > You should probably post the driver for review. A well written > > > driver should not even need to care about any of this. phylib and > > > the netdev driver code does all the work. It only gets interesting > > > when you don't have a PHY, e.g. a stacked device, like bonding, or a > > > virtual device like tun/tap. > > > > i wish, but i'm on contract, and proprietary, and NDA and all that. > > so i am reduced to crawling through the code, trying to figure out > > what is misconfigured that is causing all this grief. > > > > rday > > > > So you expect FOSS developers to help you with proprietary licensed > driver. Good Luck with that. sorry, i'm sure this will all be released upon production, just not while it's in the midst of development. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-27 6:20 ` Robert P. J. Day @ 2018-08-27 7:11 ` Oliver Hartkopp 2018-08-27 8:04 ` Robert P. J. Day 0 siblings, 1 reply; 9+ messages in thread From: Oliver Hartkopp @ 2018-08-27 7:11 UTC (permalink / raw) To: Robert P. J. Day, Stephen Hemminger Cc: Andrew Lunn, Linux kernel netdev mailing list On 08/27/2018 08:20 AM, Robert P. J. Day wrote: > On Sun, 26 Aug 2018, Stephen Hemminger wrote: > >> On Sun, 26 Aug 2018 15:20:24 -0400 (EDT) >> "Robert P. J. Day" <rpjday@crashcourse.ca> wrote: >> >>> On Sun, 26 Aug 2018, Andrew Lunn wrote: >>> >>>>> i ask since, in my testing, when the interface should have been >>>>> up, the attribute file "operstate" for that interface showed >>>>> "unknown", and i wondered how worried i should be about that. >>>> >>>> Hi Robert >>>> >>>> You should probably post the driver for review. A well written >>>> driver should not even need to care about any of this. phylib and >>>> the netdev driver code does all the work. It only gets interesting >>>> when you don't have a PHY, e.g. a stacked device, like bonding, or a >>>> virtual device like tun/tap. >>> >>> i wish, but i'm on contract, and proprietary, and NDA and all that. >>> so i am reduced to crawling through the code, trying to figure out >>> what is misconfigured that is causing all this grief. >>> >>> rday >>> >> >> So you expect FOSS developers to help you with proprietary licensed >> driver. Good Luck with that. > > sorry, i'm sure this will all be released upon production, just not > while it's in the midst of development. "released upon production" means usually: Oh, we put that driver in a tar-ball on a CD that's shipped with the product and which will get no further visibility nor (security) maintenance. Robert, please tell your manager that creating a driver is no rocket science and also brings no "costumer differentiation" which needs to be covered under NDA. Posting drivers and bring it into mainline Linux heavily increases the quality due to the review process and all the people that are willing to help you to get better. At the end your driver gets long-term maintenance and other people can benefit from it - as your boss is getting benefit from using Linux right now. When something is "released upon production" it will not be in a quality that it could go into the kernel - and no one will have the time/money/ambition to spend effort on it then. You have just produced one of the numerous dead out-of-tree drivers. That would be just sad. Best regards, Oliver ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: confusing comment, explanation of @IFF_RUNNING in if.h 2018-08-27 7:11 ` Oliver Hartkopp @ 2018-08-27 8:04 ` Robert P. J. Day 0 siblings, 0 replies; 9+ messages in thread From: Robert P. J. Day @ 2018-08-27 8:04 UTC (permalink / raw) To: Oliver Hartkopp Cc: Stephen Hemminger, Andrew Lunn, Linux kernel netdev mailing list On Mon, 27 Aug 2018, Oliver Hartkopp wrote: > "released upon production" means usually: Oh, we put that driver in > a tar-ball on a CD that's shipped with the product and which will > get no further visibility nor (security) maintenance. > > Robert, please tell your manager that creating a driver is no rocket > science and also brings no "costumer differentiation" which needs to > be covered under NDA. > > Posting drivers and bring it into mainline Linux heavily increases > the quality due to the review process and all the people that are > willing to help you to get better. At the end your driver gets > long-term maintenance and other people can benefit from it - as your > boss is getting benefit from using Linux right now. > > When something is "released upon production" it will not be in a > quality that it could go into the kernel - and no one will have the > time/money/ambition to spend effort on it then. You have just > produced one of the numerous dead out-of-tree drivers. That would be > just sad. i make these arguments on a regular basis with all of my clients but, as a contractor, i have little influence. but i will continue to make them. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-08-27 11:52 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-08-26 8:13 confusing comment, explanation of @IFF_RUNNING in if.h Robert P. J. Day 2018-08-26 19:20 ` Andrew Lunn 2018-08-26 19:20 ` Robert P. J. Day 2018-08-26 19:28 ` Andrew Lunn 2018-08-26 19:30 ` Robert P. J. Day 2018-08-26 20:51 ` Stephen Hemminger 2018-08-27 6:20 ` Robert P. J. Day 2018-08-27 7:11 ` Oliver Hartkopp 2018-08-27 8:04 ` Robert P. J. Day
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).