]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Use CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS where appropriate
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 1 Sep 2008 11:50:28 +0000 (12:50 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:54:42 +0000 (18:54 -0400)
commitc5954204abde61c2718eeea3c2e93bc5b840ce8a
tree37f7eb6aa4ae941cde2c4fdf7f0040c2ea1ab7c2
parentba67a5d52367f5f5da7f98f53061f917be4bf006
sfc: Use CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS where appropriate

For some buffers we use a starting offset of either NET_IP_ALIGN or 0
depending on whether we believe the architecture supports efficient
access to unaligned words.  There is now a config macro specifying
whether this is the case, so check that rather than checking for
specific architectures.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sfc/net_driver.h
drivers/net/sfc/tx.c