Re: hardware time stamping with optional structs in data area

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Sunday, January 25, 2009 - 10:04 pm

From: Patrick Ohly <patrick.ohly@intel.com>
Date: Wed, 21 Jan 2009 11:07:37 +0100


See fs/compat_ioctl.c:dev_ifsioc() for how to handle the
"32-bit process under 64-bit kernel" issue wrt. struct ifreq

Next, I don't like that loop in the SKB allocator to deal with the
variable size.  You're computing what amounts to a constant
calculation.

Just consolidate the array into a direct conversion table.  You only
have 2 bits defined so you only need an array of 4 entries.  Pass the
optional flag bits directly in as the index of that table.
--
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:
[RFC PATCH 08/12] igb: stub support for SIOCSHWTSTAMP, Patrick Ohly, (Mon Dec 15, 7:54 am)
[RFC PATCH 10/12] igb: access to NIC time, Patrick Ohly, (Mon Dec 15, 7:54 am)
Re: hardware time stamping with optional structs in data area, David Miller, (Sun Jan 25, 10:04 pm)