Skip to content

Commit

Permalink
Revert "microblaze: Kill NET_SKB_PAD and NET_IP_ALIGN overrides."
Browse files Browse the repository at this point in the history
This reverts commit 39e0786.

On request from microblaze developers, they are going to handle
this differently.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 7, 2010
1 parent a33fa66 commit e0e3328
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/microblaze/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,14 @@ extern struct dentry *of_debugfs_root;

#define arch_align_stack(x) (x)

/*
* MicroBlaze doesn't handle unaligned accesses in hardware.
*
* Based on this we force the IP header alignment in network drivers.
* We also modify NET_SKB_PAD to be a cacheline in size, thus maintaining
* cacheline alignment of buffers.
*/
#define NET_IP_ALIGN 2
#define NET_SKB_PAD L1_CACHE_BYTES

#endif /* _ASM_MICROBLAZE_SYSTEM_H */

0 comments on commit e0e3328

Please sign in to comment.