Searched hist:"75 fea73dce4ed7c1725f9f5c0adf5aecc8d0fcfd" (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | route.c | diff 75fea73dce4ed7c1725f9f5c0adf5aecc8d0fcfd Mon Sep 28 20:10:38 CEST 2015 Alexander Duyck <aduyck@mirantis.com> net: Swap ordering of tests in ip_route_input_mc
This patch just swaps the ordering of one of the conditional tests in ip_route_input_mc. Specifically it swaps the testing for the source address to see if it is loopback, and the test to see if we allow a loopback source address.
The reason for swapping these two tests is because it is much faster to test if an address is loopback than it is to dereference several pointers to get at the net structure to see if the use of loopback is allowed.
Signed-off-by: Alexander Duyck <aduyck@mirantis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|