net/sched: act_mirred: Refactor detection whether dev needs xmit at mac header
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Thu, 13 Oct 2016 06:06:42 +0000 (09:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Oct 2016 14:23:06 +0000 (10:23 -0400)
commitdcf800344a91173802f2ad9c1c6b642f4b302df6
treeb49a643c29af9647db060d4c0bb2ddbfe7ea1861
parent165779231ff9e9c4ac7baaee84eff91d589f3e22
net/sched: act_mirred: Refactor detection whether dev needs xmit at mac header

Move detection logic that tests whether device expects skb data to point
at mac_header upon xmit into a function.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_mirred.c