Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203759
b: refs/heads/master
c: a256be7
h: refs/heads/master
i:
  203757: 9b2be67
  203755: c037aa6
  203751: 2fcc020
  203743: 11b84a5
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Jul 27, 2010
1 parent 6172e17 commit 003284c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 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: 416c2f9cf5524cb53392cbcf99fef7aa687192ce
refs/heads/master: a256be70c57d6f8c827d09d645a1f6fe9330af72
23 changes: 7 additions & 16 deletions trunk/net/core/drop_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,31 +347,22 @@ static struct notifier_block dropmon_net_notifier = {

static int __init init_net_drop_monitor(void)
{
int cpu;
int rc, i, ret;
struct per_cpu_dm_data *data;
int cpu, rc;

printk(KERN_INFO "Initalizing network drop monitor service\n");

if (sizeof(void *) > 8) {
printk(KERN_ERR "Unable to store program counters on this arch, Drop monitor failed\n");
return -ENOSPC;
}

if (genl_register_family(&net_drop_monitor_family) < 0) {
rc = genl_register_family_with_ops(&net_drop_monitor_family,
dropmon_ops,
ARRAY_SIZE(dropmon_ops));
if (rc) {
printk(KERN_ERR "Could not create drop monitor netlink family\n");
return -EFAULT;
}

rc = -EFAULT;

for (i = 0; i < ARRAY_SIZE(dropmon_ops); i++) {
ret = genl_register_ops(&net_drop_monitor_family,
&dropmon_ops[i]);
if (ret) {
printk(KERN_CRIT "Failed to register operation %d\n",
dropmon_ops[i].cmd);
goto out_unreg;
}
return rc;
}

rc = register_netdevice_notifier(&dropmon_net_notifier);
Expand Down

0 comments on commit 003284c

Please sign in to comment.