Re: [net-2.6 PATCH 9/10] Neterion: New driver: Ethtool related

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Hutchings
Date: Monday, March 16, 2009 - 2:53 pm

On Sat, 2009-03-14 at 00:22 -0800, Ramkrishna Vepa wrote:
[...

Why?


Do not use #ifdef here.  You can be sure that these definitions aren't
going away.

[...]

What is the point of this intermediate copy?


Use strlcpy() to ensure null-termination.

[...]

Just schedule() will do.

[...]

This is the same as ethtool_op_get_tso; just point to that.

[...]

These operations are deprecated; you should implement get_strings_count
instead.


This is the same as ethtool_op_set_tx_hw_csum; just point to that.

[...]

So what is the point of reporting the EEPROM length?

[...]

Don't claim to have tests you don't actually implement.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-2.6 PATCH 9/10] Neterion: New driver: Ethtool related, Ramkrishna Vepa, (Sat Mar 14, 1:22 am)
Re: [net-2.6 PATCH 9/10] Neterion: New driver: Ethtool related, Ben Hutchings, (Mon Mar 16, 2:53 pm)