commit | f6c53334d6c6ac7088c2e7e70ff2941bfb33f52e | [log] [tgz] |
---|---|---|
author | Junwei Zhang <martinbj2008@gmail.com> | Fri Sep 18 00:00:05 2015 -0400 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 17 21:02:59 2015 -0700 |
tree | c93d338e62e226a6bb75b27383521d133ae24ae0 | |
parent | 4b1b865e4e97e336316f30e32af36d71e98bdabc [diff] |
net: only check perm protocol when register proto The permanent protocol nodes are at the head of the list, So only need check all these nodes. No matter the new node is permanent or not, insert the new node after the last permanent protocol node, If the new node conflicts with existing permanent node, return error. Signed-off-by: Martin Zhang <martinbj2008@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>