Dan Mick wrote:
Paul Durrant wrote:
On 17/05/07, Dana H. Myers <[EMAIL PROTECTED]> wrote:
I've
never understood why some drivers insist on logging link-status,
much less
announcing it to the console. I'm sure there was a once a situation
where it
came in handy, but I do not know what it was.
I think it was simply that the console/log used to be the only way to
convey the information; IFF_RUNNING is a fairly recent addition to the
IP stack and dladm/libdladm is an even more recent addition to Solaris
(I know, 'cos I wrote the original code ;-)).
So my feeling is that Nemo *should* log link status, on behalf of
drivers, to the system log but *not* to the console and any such
logging in the drivers themselves should be ripped out.
Paul
So, IFF_RUNNING is recent...but it's there now. Why would we continue
to log to the messages file? It's completely redundant. If someone
(most likely a driver developer) has some problem where watching the
second-by-second status of link is important, well, that's what dtrace
is for.
Its useful for a few reasons:
1) post-mortem analysis. its often useful to understand what the driver
thinks was negotiated at some previous point in time (such as after a
crash or hang)
2) lots of customers have learned over years to grep for this stuff in
syslogs. this has extended to system admin developed scripts, and such.
3) notification of link status in some fashion is useful... when
checking/diagnosing links, its not uncommon to watch (tail -f) the log
files to see when negotiation is complete.
Anyway, an extra couple lines in a log file somewhere are harmless.
Its possible that dladm based solutions could evolve to resolve most of
the above issues, but it takes time. Why screw up customers who have
learned the legacy behavior by removing it?
-- Garrett
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss