net: erspan: refactor existing erspan code
authorWilliam Tu <u9012063@gmail.com>
Thu, 14 Dec 2017 00:38:55 +0000 (16:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 17:33:59 +0000 (12:33 -0500)
commit1d7e2ed22f8d9171fa8b629754022f22115b3f03
tree6e7008b55bba8f9d35858dcdccff725762d41215
parent4650b7514c06a9f66829d877b19d896d49d1116e
net: erspan: refactor existing erspan code

The patch refactors the existing erspan implementation in order
to support erspan version 2, which has additional metadata.  So, in
stead of having one 'struct erspanhdr' holding erspan version 1,
breaks it into 'struct erspan_base_hdr' and 'struct erspan_metadata'.

Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/erspan.h
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c
net/openvswitch/flow_netlink.c