Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor conflict with the DSA legacy code removal. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -32,6 +32,8 @@ static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp,
|
||||
struct cls_cgroup_head *head = rcu_dereference_bh(tp->root);
|
||||
u32 classid = task_get_classid(skb);
|
||||
|
||||
if (unlikely(!head))
|
||||
return -1;
|
||||
if (!classid)
|
||||
return -1;
|
||||
if (!tcf_em_tree_match(skb, &head->ematches, NULL))
|
||||
|
@@ -32,6 +32,9 @@ static int mall_classify(struct sk_buff *skb, const struct tcf_proto *tp,
|
||||
{
|
||||
struct cls_mall_head *head = rcu_dereference_bh(tp->root);
|
||||
|
||||
if (unlikely(!head))
|
||||
return -1;
|
||||
|
||||
if (tc_skip_sw(head->flags))
|
||||
return -1;
|
||||
|
||||
|
Reference in New Issue
Block a user