Michal Sekletar 27cd545247 filter: introduce SKF_AD_VLAN_TPID BPF extension
If vlan offloading takes place then vlan header is removed from frame
and its contents, both vlan_tci and vlan_proto, is available to user
space via TPACKET interface. However, only vlan_tci can be used in BPF
filters.

This commit introduces a new BPF extension. It makes possible to load
the value of vlan_proto (vlan TPID) to register A. Support for classic
BPF and eBPF is being added, analogous to skb->protocol.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Jiri Pirko <jpirko@redhat.com>

Signed-off-by: Michal Sekletar <msekleta@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-24 15:25:15 -04:00
..
2015-02-19 13:31:40 +03:00
2014-12-14 14:57:16 -08:00
2015-02-18 09:05:48 -08:00
2014-12-15 18:19:03 -08:00
2015-02-11 10:56:48 -08:00
2015-02-18 08:01:44 -08:00
2015-02-11 10:28:45 -08:00
2015-01-29 10:49:28 +02:00
2015-02-18 07:28:37 -08:00
2015-03-11 15:56:59 -07:00
2014-12-18 19:08:10 -08:00
2015-02-12 18:54:15 -08:00
2014-12-19 22:55:06 +01:00
2015-01-21 19:21:30 +01:00
2015-02-11 18:03:54 -08:00
2015-03-02 16:43:41 -05:00
2014-12-31 13:06:50 -05:00
2015-01-25 23:17:28 -05:00
2015-01-27 11:09:13 +01:00
2014-12-16 14:53:01 -08:00
2015-01-15 10:34:54 +01:00
2015-01-15 10:34:54 +01:00
2015-02-13 21:21:36 -08:00
2015-02-17 14:34:51 -08:00
2015-01-24 10:11:12 +01:00
2014-12-18 09:39:51 +01:00
2015-01-04 23:11:43 -05:00
2015-02-11 17:06:02 -08:00
2015-03-11 17:56:28 -04:00
2014-12-11 13:06:58 -08:00
2014-12-14 14:57:16 -08:00
2015-01-25 23:17:28 -05:00
2015-02-17 14:34:52 -08:00
2015-01-06 11:01:13 -08:00
2015-02-16 17:56:03 -08:00
2015-02-13 21:21:41 -08:00
2015-01-22 15:10:56 +01:00
2015-03-11 21:55:28 -04:00
2015-01-03 14:32:57 -05:00
2015-02-13 21:21:35 -08:00
2015-02-17 22:21:11 -05:00
2014-11-28 16:08:16 +01:00
2014-12-09 12:05:24 +02:00
2014-12-15 23:49:28 +02:00