mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 16:58:53 +00:00
sched: protocol only needed when CONFIG_NET_CLS_ACT is enabled
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ddc3731fcb
commit
52bc97470e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user