Author: Jose Renato Santos <jsantos@hpl.hp.com>
Date: Wed Jun 17 10:34:18 2009 -0700
Fix calculation of maximum skb head size in netchannel2. We need
to use (SMP_CACHE_BYTES - 1) instead of (SMP_CACHE_BYTES).
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
hypercalls. */
skb_headsize = nr_bytes + NET_IP_ALIGN;
if (skb_headsize >
- ((PAGE_SIZE - sizeof(struct skb_shared_info) - NET_SKB_PAD) & ~(SMP_CACHE_BYTES))) {
+ ((PAGE_SIZE - sizeof(struct skb_shared_info) - NET_SKB_PAD) &
+ ~(SMP_CACHE_BYTES - 1))) {
skb_headsize = msg->prefix_size + NET_IP_ALIGN;
}