On Wed, Jun 2, 2010 at 8:50 AM, David Miller <davem@davemloft.net> wrote:
Yeah, I was clearly not thinking clearly. dev_flags will be
overwritten, and is not meant for this. I believe, what we should do
is add a "port" field to the PHY device, and if PCR_FIBER_SELECT is
set, then set the port field to PORT_FIBRE. I'm not entirely clear on
the semantics of that field in the ethtool cmd, but it seems like the
right idea.
Yes, it's private, and I would be fine with using priv, I just didn't
think that it was correct to assign priv to point at the probe
function as a mechanism for indicating that fiber is being used. I
believe that code should be more explicit than that. priv is meant to
point at private data, not to indicate an arbitrary attribute of the
link by virtue of being non-null.
Andy
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html