]> git.baikalelectronics.ru Git - kernel.git/commit
cls_cgroup: factor out classid retrieval
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 15 Jul 2015 12:21:41 +0000 (14:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2015 19:41:30 +0000 (12:41 -0700)
commit9f64136e66b9c3e0d80276969e22e13d029cb8cc
treeed2f43c4b6058bf7ca91676afc320757fe277a15
parent0db8f86ca31b64e90c81e7038e25ba408353df2e
cls_cgroup: factor out classid retrieval

Split out retrieving the cgroups net_cls classid retrieval into its
own function, so that it can be reused later on from other parts of
the traffic control subsystem. If there's no skb->sk, then the small
helper returns 0 as well, which in cls_cgroup terms means 'could not
classify'.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/cls_cgroup.h
net/sched/cls_cgroup.c