Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327859
b: refs/heads/master
c: d530d6d
h: refs/heads/master
i:
  327857: 1d7325f
  327855: f5541b3
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and David S. Miller committed Sep 13, 2012
1 parent 9b993fc commit 915e4f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 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: 5d07d8680692a208be0466a352c9fde7eec2afa7
refs/heads/master: d530d6df96ee28902486f8e11815ef9ad3a1cd1b
32 changes: 0 additions & 32 deletions trunk/net/core/netprio_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,32 +109,6 @@ static int write_update_netdev_table(struct net_device *dev)
return ret;
}

static int update_netdev_tables(void)
{
int ret = 0;
struct net_device *dev;
u32 max_len;
struct netprio_map *map;

rtnl_lock();
max_len = atomic_read(&max_prioidx) + 1;
for_each_netdev(&init_net, dev) {
map = rtnl_dereference(dev->priomap);
/*
* don't allocate priomap if we didn't
* change net_prio.ifpriomap (map == NULL),
* this will speed up skb_update_prio.
*/
if (map && map->priomap_len < max_len) {
ret = extend_netdev_table(dev, max_len);
if (ret < 0)
break;
}
}
rtnl_unlock();
return ret;
}

static struct cgroup_subsys_state *cgrp_create(struct cgroup *cgrp)
{
struct cgroup_netprio_state *cs;
Expand All @@ -153,12 +127,6 @@ static struct cgroup_subsys_state *cgrp_create(struct cgroup *cgrp)
goto out;
}

ret = update_netdev_tables();
if (ret < 0) {
put_prioidx(cs->prioidx);
goto out;
}

return &cs->css;
out:
kfree(cs);
Expand Down

0 comments on commit 915e4f4

Please sign in to comment.