提交 52bc9747 编写于 作者: H Hagen Paul Pfeifer 提交者: David S. Miller

sched: protocol only needed when CONFIG_NET_CLS_ACT is enabled

Signed-off-by: NHagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ddc3731f
......@@ -1672,12 +1672,12 @@ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp,
struct tcf_result *res)
{
int err = 0;
__be16 protocol;
#ifdef CONFIG_NET_CLS_ACT
__be16 protocol;
struct tcf_proto *otp = tp;
reclassify:
#endif
protocol = skb->protocol;
#endif
err = tc_classify_compat(skb, tp, res);
#ifdef CONFIG_NET_CLS_ACT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册