net_sched: act_gact: read tcfg_ptype once
authorEric Dumazet <edumazet@google.com>
Mon, 6 Jul 2015 12:18:07 +0000 (05:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 20:50:42 +0000 (13:50 -0700)
commit8f2ae965b7ef4f4ddab6110f06388e270723d694
treea9eab96bbfdf0be97e2d78a165edcdc769d5ca08
parentcc6510a9504fd3c03d76bd68d99653148342eecc
net_sched: act_gact: read tcfg_ptype once

Third step for gact RCU operation :

Following patch will get rid of spinlock protection,
so we need to read tcfg_ptype once.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_gact.c