Willem de Bruijn e7246e122a net-tc: extract skip classify bit from tc_verd
Packets sent by the IFB device skip subsequent tc classification.
A single bit governs this state. Move it out of tc_verd in
anticipation of removing that __u16 completely.

The new bitfield tc_skip_classify temporarily uses one bit of a
hole, until tc_verd is removed completely in a follow-up patch.

Remove the bit hole comment. It could be 2, 3, 4 or 5 bits long.
With that many options, little value in documenting it.

Introduce a helper function to deduplicate the logic in the two
sites that check this bit.

The field tc_skip_classify is set only in IFB on skbs cloned in
act_mirred, so original packet sources do not have to clear the
bit when reusing packets (notably, pktgen and octeon).

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-08 20:58:52 -05:00
..
2016-12-03 19:28:02 -05:00
2016-09-19 22:04:14 -04:00
2016-09-19 22:04:14 -04:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2016-12-25 17:21:22 +01:00
2016-09-19 01:47:18 -04:00
2016-12-20 14:22:48 -05:00
2016-12-25 17:21:22 +01:00