Re: [PATCH V1 net-next] net: only check perm protocol when register proto

2015-09-17 Thread David Miller
From: martinbj2...@gmail.com Date: Tue, 15 Sep 2015 08:14:05 +0800 > @@ -1043,22 +1043,16 @@ void inet_register_protosw(struct inet_protosw *p) > goto out_illegal; > > /* If we are trying to override a permanent protocol, bail. */ > - answer = NULL; > last_perm = &i

[PATCH V1 net-next] net: only check perm protocol when register proto

2015-09-14 Thread martinbj2008
From: Junwei Zhang the permanent protocol nodes are at the head of the list. So only need check all these nodes. and insert the new node after the last permanent protocol node, no matter new node is permanent or not. If the inserted proto conflicts with existing permanent protocol, then goto ou