Re: [PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-10 Thread Cong Wang
On Sun, May 8, 2016 at 3:55 PM, Pablo Neira Ayuso wrote: > +static int gtp_genl_new_pdp(struct sk_buff *skb, struct genl_info *info) > +{ ... > + > + net = gtp_genl_get_net(sock_net(skb->sk), info->attrs); > + if (IS_ERR(net)) > + return

Re: [PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-10 Thread Eric Dumazet
On Mon, 2016-05-09 at 00:55 +0200, Pablo Neira Ayuso wrote: > +static int gtp1u_udp_encap_recv(struct gtp_dev *gtp, struct sk_buff *skb, > + bool xnet) > +{ > + unsigned int hdrlen = sizeof(struct udphdr) + > + sizeof(struct gtp1_header);

Re: [PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-10 Thread Pablo Neira Ayuso
On Tue, May 10, 2016 at 10:16:33AM -0700, Tom Herbert wrote: > On Tue, May 10, 2016 at 9:27 AM, David Miller wrote: > > From: Pablo Neira Ayuso > > Date: Mon, 9 May 2016 00:55:48 +0200 > > > >> This is an initial implementation of a netdev driver for

Re: [PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-10 Thread Tom Herbert
On Tue, May 10, 2016 at 9:27 AM, David Miller wrote: > From: Pablo Neira Ayuso > Date: Mon, 9 May 2016 00:55:48 +0200 > >> This is an initial implementation of a netdev driver for GTP datapath >> (GTP-U) v0 and v1, according to the GSM TS 09.60 and 3GPP

Re: [PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-10 Thread David Miller
From: Pablo Neira Ayuso Date: Mon, 9 May 2016 00:55:48 +0200 > This is an initial implementation of a netdev driver for GTP datapath > (GTP-U) v0 and v1, according to the GSM TS 09.60 and 3GPP TS 29.060 > standards. This tunneling protocol is used to prevent subscribers

[PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-08 Thread Pablo Neira Ayuso
This is an initial implementation of a netdev driver for GTP datapath (GTP-U) v0 and v1, according to the GSM TS 09.60 and 3GPP TS 29.060 standards. This tunneling protocol is used to prevent subscribers from accessing mobile carrier core network infrastructure. This implementation requires a