Re: [PATCHv2 net-next] gre: introduce native tunnel support for ERSPAN

2017-08-17 Thread William Tu
>> >> +static int erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, >> + int gre_hdr_len) >> +{ >> + struct net *net = dev_net(skb->dev); >> + struct ip_tunnel_net *itn; >> + struct ip_tunnel *tunnel; >> + struct metadata_dst *tun_dst = NULL; >> + const

Re: [PATCHv2 net-next] gre: introduce native tunnel support for ERSPAN

2017-08-13 Thread David Miller
From: William Tu Date: Wed, 9 Aug 2017 13:53:05 -0700 > The patch adds ERSPAN type II tunnel support. The implementation > is based on the draft at [1]. One of the purposes is for Linux > box to be able to receive ERSPAN monitoring traffic sent from > the Cisco switch, by creating a ERSPAN tun

[PATCHv2 net-next] gre: introduce native tunnel support for ERSPAN

2017-08-09 Thread William Tu
The patch adds ERSPAN type II tunnel support. The implementation is based on the draft at [1]. One of the purposes is for Linux box to be able to receive ERSPAN monitoring traffic sent from the Cisco switch, by creating a ERSPAN tunnel device. In addition, the patch also adds ERSPAN TX, so traffi