Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information