Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5884
b: refs/heads/master
c: f3ed8b4
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Aug 18, 2005
1 parent ae4a6d1 commit b6c9714
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cab224d1f6557e7014601f251d6a41982963e6b
refs/heads/master: f3ed8b444781158c9c10f48a8eba6795ecec7023
2 changes: 1 addition & 1 deletion trunk/drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ struct net_device loopback_dev = {
.ethtool_ops = &loopback_ethtool_ops,
};

/* Setup and register the of the LOOPBACK device. */
/* Setup and register the loopback device. */
int __init loopback_init(void)
{
struct net_device_stats *stats;
Expand Down
22 changes: 12 additions & 10 deletions trunk/net/802/tr.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,11 @@ void tr_source_route(struct sk_buff *skb,struct trh_hdr *trh,struct net_device *
unsigned int hash;
struct rif_cache *entry;
unsigned char *olddata;
unsigned long flags;
static const unsigned char mcast_func_addr[]
= {0xC0,0x00,0x00,0x04,0x00,0x00};

spin_lock_bh(&rif_lock);
spin_lock_irqsave(&rif_lock, flags);

/*
* Broadcasts are single route as stated in RFC 1042
Expand Down Expand Up @@ -323,7 +324,7 @@ printk("source routing for %02X:%02X:%02X:%02X:%02X:%02X\n",trh->daddr[0],
else
slack = 18 - ((ntohs(trh->rcf) & TR_RCF_LEN_MASK)>>8);
olddata = skb->data;
spin_unlock_bh(&rif_lock);
spin_unlock_irqrestore(&rif_lock, flags);

skb_pull(skb, slack);
memmove(skb->data, olddata, sizeof(struct trh_hdr) - slack);
Expand All @@ -337,10 +338,11 @@ printk("source routing for %02X:%02X:%02X:%02X:%02X:%02X\n",trh->daddr[0],
static void tr_add_rif_info(struct trh_hdr *trh, struct net_device *dev)
{
unsigned int hash, rii_p = 0;
unsigned long flags;
struct rif_cache *entry;


spin_lock_bh(&rif_lock);
spin_lock_irqsave(&rif_lock, flags);

/*
* Firstly see if the entry exists
Expand Down Expand Up @@ -378,7 +380,7 @@ printk("adding rif_entry: addr:%02X:%02X:%02X:%02X:%02X:%02X rcf:%04X\n",
if(!entry)
{
printk(KERN_DEBUG "tr.c: Couldn't malloc rif cache entry !\n");
spin_unlock_bh(&rif_lock);
spin_unlock_irqrestore(&rif_lock, flags);
return;
}

Expand Down Expand Up @@ -420,7 +422,7 @@ printk("updating rif_entry: addr:%02X:%02X:%02X:%02X:%02X:%02X rcf:%04X\n",
}
entry->last_used=jiffies;
}
spin_unlock_bh(&rif_lock);
spin_unlock_irqrestore(&rif_lock, flags);
}

/*
Expand All @@ -430,9 +432,9 @@ printk("updating rif_entry: addr:%02X:%02X:%02X:%02X:%02X:%02X rcf:%04X\n",
static void rif_check_expire(unsigned long dummy)
{
int i;
unsigned long next_interval = jiffies + sysctl_tr_rif_timeout/2;
unsigned long flags, next_interval = jiffies + sysctl_tr_rif_timeout/2;

spin_lock_bh(&rif_lock);
spin_lock_irqsave(&rif_lock, flags);

for(i =0; i < RIF_TABLE_SIZE; i++) {
struct rif_cache *entry, **pentry;
Expand All @@ -454,7 +456,7 @@ static void rif_check_expire(unsigned long dummy)
}
}

spin_unlock_bh(&rif_lock);
spin_unlock_irqrestore(&rif_lock, flags);

mod_timer(&rif_timer, next_interval);

Expand Down Expand Up @@ -485,7 +487,7 @@ static struct rif_cache *rif_get_idx(loff_t pos)

static void *rif_seq_start(struct seq_file *seq, loff_t *pos)
{
spin_lock_bh(&rif_lock);
spin_lock_irq(&rif_lock);

return *pos ? rif_get_idx(*pos - 1) : SEQ_START_TOKEN;
}
Expand Down Expand Up @@ -516,7 +518,7 @@ static void *rif_seq_next(struct seq_file *seq, void *v, loff_t *pos)

static void rif_seq_stop(struct seq_file *seq, void *v)
{
spin_unlock_bh(&rif_lock);
spin_unlock_irq(&rif_lock);
}

static int rif_seq_show(struct seq_file *seq, void *v)
Expand Down
12 changes: 6 additions & 6 deletions trunk/net/ipv4/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ static void icmp_push_reply(struct icmp_bxm *icmp_param,
{
struct sk_buff *skb;

ip_append_data(icmp_socket->sk, icmp_glue_bits, icmp_param,
icmp_param->data_len+icmp_param->head_len,
icmp_param->head_len,
ipc, rt, MSG_DONTWAIT);

if ((skb = skb_peek(&icmp_socket->sk->sk_write_queue)) != NULL) {
if (ip_append_data(icmp_socket->sk, icmp_glue_bits, icmp_param,
icmp_param->data_len+icmp_param->head_len,
icmp_param->head_len,
ipc, rt, MSG_DONTWAIT) < 0)
ip_flush_pending_frames(icmp_socket->sk);
else if ((skb = skb_peek(&icmp_socket->sk->sk_write_queue)) != NULL) {
struct icmphdr *icmph = skb->h.icmph;
unsigned int csum = 0;
struct sk_buff *skb1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/ipcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static struct crypto_tfm **ipcomp_alloc_tfms(const char *alg_name)
int cpu;

/* This can be any valid CPU ID so we don't need locking. */
cpu = smp_processor_id();
cpu = raw_smp_processor_id();

list_for_each_entry(pos, &ipcomp_tfms_list, list) {
struct crypto_tfm *tfm;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/ipcomp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static struct crypto_tfm **ipcomp6_alloc_tfms(const char *alg_name)
int cpu;

/* This can be any valid CPU ID so we don't need locking. */
cpu = smp_processor_id();
cpu = raw_smp_processor_id();

list_for_each_entry(pos, &ipcomp6_tfms_list, list) {
struct crypto_tfm *tfm;
Expand Down

0 comments on commit b6c9714

Please sign in to comment.