summaryrefslogtreecommitdiff
path: root/CodingStyle
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-03 23:24:18 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-03 23:26:45 +0200
commit3e071a78f2a5c7424340b4c8b446d51e82413c13 (patch)
tree2a411f35daeae48be99a8d325f88dcbd63bb0f2a /CodingStyle
parentdc5f7a04f2b446b5224be356c2fc79e88a5d3e8f (diff)
netsniff-ng: v3: fix packet accounting on --num
We need to carry frame_count through multiple calls of walk function to account correctly for --num <pkts>. Also, move socket stats printing into rx ring, since it belongs there. Todo: the kernel socket seems to have a different count that what we see. This needs to be fixed one way or the other. Not yet sure what's causing this. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'CodingStyle')
0 files changed, 0 insertions, 0 deletions
is fine for cgroup proper but cgroup_name/path() depend on the associated kernfs_node and if a subsystem makes the new cgroup_subsys_state visible, which they're allowed to after onlining, it can lead to NULL dereference. The current code performs cgroup creation and subsystem onlining in cgroup_create() and cgroup_mkdir() makes the cgroup and subsystems visible afterwards. There's no reason to online the subsystems early and we can simply drop cgroup_apply_control_enable() call from cgroup_create() so that the subsystems are onlined and made visible at the same time. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Fixes: a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") Cc: stable@vger.kernel.org # v4.6+
Diffstat (limited to 'include/math-emu/op-1.h')