Re: [PATCH 07/14] bridge: add some comments for NETDEV_RELEASE

2 messages, 2 authors, 2012-08-10 · open the first message on its own page

Re: [PATCH 07/14] bridge: add some comments for NETDEV_RELEASE

From: Stephen Hemminger <hidden>
Date: 2012-08-09 19:44:40

If you are going to add an explanation, then I would prefer a more complete one. Something like:
"Since more than one interface can be attached to a bridge, there still maybe an alternate path for netconsole to use; therefore there is no reason for a NETDEV_RELEASE event."

But my opinion it really isn't necessary to document what isn't done in the code, only what is done. The purpose of comments is to explain the wider impacts of the code.

Re: [PATCH 07/14] bridge: add some comments for NETDEV_RELEASE

From: Cong Wang <hidden>
Date: 2012-08-10 02:38:20

On Thu, 2012-08-09 at 09:44 -1000, Stephen Hemminger wrote:
If you are going to add an explanation, then I would prefer a more complete one. Something like:
"Since more than one interface can be attached to a bridge, there still maybe an alternate path for netconsole to use; therefore there is no reason for a NETDEV_RELEASE event."
Yeah, this is better.
But my opinion it really isn't necessary to document what isn't done in the code, only what is done. The purpose of comments is to explain the wider impacts of the code.
The reason why I add it is to remind people like me who forgot the
reason behind. ;)

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help