commit | 26bff940dd975499c6c47438d4395d7d215911e8 | [log] [tgz] |
---|---|---|
author | Alexey Dobriyan <adobriyan@gmail.com> | Tue Nov 22 06:46:02 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 22 15:27:18 2011 -0500 |
tree | 7b6774138e3033d7ab6df080419740083caee2ae | |
parent | 3ee32fee65ef6a4a8a4188e913be7dd90ba9e058 [diff] |
xfrm: optimize ipv4 selector matching Current addr_match() is errh, under-optimized. Compiler doesn't know that memcmp() branch doesn't trigger for IPv4. Also, pass addresses by value -- they fit into register. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>