Re: [PATCH v2] cls_u32: use skb_header_pointer() to dereference data safely

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Wednesday, June 2, 2010 - 7:15 am

From: Changli Gao <xiaosuo@gmail.com>
Date: Wed,  2 Jun 2010 22:00:36 +0800


Please don't do so many things at once Changli.

Everything is fine except the get_unaligned() addition.  It's
intentionally not there, and by adding the get_unaligned() you're
going to kill performance as this expands to 4 byte loads per u32 key
check on RISC systems.

If it's not aligned, that's a path or configuration that will need to
be fixed up such that the accesses are aligned.

Please respin this patch with the get_unaligned() part removed.

Thanks.
--
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:
Re: [PATCH v2] cls_u32: use skb_header_pointer() to derefe ..., David Miller, (Wed Jun 2, 7:15 am)