]> err.no Git - linux-2.6/commitdiff
[NET]: Fix more per-cpu typos
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 2 Aug 2006 22:02:31 +0000 (15:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2006 22:02:31 +0000 (15:02 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netdma.h
net/core/dev.c
net/ipv4/tcp.c

index ceae5ee85c0490178041aa9705944094e6e188cb..7f53cd1d8b1eb8b54e8e88fbd286edef6e6673b7 100644 (file)
@@ -29,7 +29,7 @@ static inline struct dma_chan *get_softnet_dma(void)
 {
        struct dma_chan *chan;
        rcu_read_lock();
-       chan = rcu_dereference(__get_cpu_var(softnet_data.net_dma));
+       chan = rcu_dereference(__get_cpu_var(softnet_data).net_dma);
        if (chan)
                dma_chan_get(chan);
        rcu_read_unlock();
index f25d7ecaf035df448923e94d72f762f145662d6d..d95e2626d944ea754731a3e78382c7f8156bb461 100644 (file)
@@ -3421,7 +3421,7 @@ static void net_dma_rebalance(void)
 
        if (net_dma_count == 0) {
                for_each_online_cpu(cpu)
-                       rcu_assign_pointer(per_cpu(softnet_data.net_dma, cpu), NULL);
+                       rcu_assign_pointer(per_cpu(softnet_data, cpu).net_dma, NULL);
                return;
        }
 
@@ -3434,7 +3434,7 @@ static void net_dma_rebalance(void)
                   + (i < (num_online_cpus() % net_dma_count) ? 1 : 0));
 
                while(n) {
-                       per_cpu(softnet_data.net_dma, cpu) = chan;
+                       per_cpu(softnet_data, cpu).net_dma = chan;
                        cpu = next_cpu(cpu, cpu_online_map);
                        n--;
                }
index 7b621e44b124d43b60a3b2aac3bdccacf7801b81..934396bb1376f84b43dd60215c04466690686f93 100644 (file)
@@ -1132,7 +1132,7 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
        tp->ucopy.dma_chan = NULL;
        preempt_disable();
        if ((len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
-           !sysctl_tcp_low_latency && __get_cpu_var(softnet_data.net_dma)) {
+           !sysctl_tcp_low_latency && __get_cpu_var(softnet_data).net_dma) {
                preempt_enable_no_resched();
                tp->ucopy.pinned_list = dma_pin_iovec_pages(msg->msg_iov, len);
        } else