]> git.baikalelectronics.ru Git - kernel.git/commit
net: l3mdev: prefer VRF master for source address selection
authorDavid Lamparter <equinox@diac24.net>
Wed, 24 Feb 2016 19:47:03 +0000 (11:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2016 19:22:26 +0000 (14:22 -0500)
commit2dd92fb953e88a3612b05cbf60e3bd9a02f5b197
treebcc1fba749c6ac53e1f4af1d5ccf8972ec5c8f45
parente31cbc39baafcb2396a6f9c9efb22cfa0cac9072
net: l3mdev: prefer VRF master for source address selection

When selecting an address in context of a VRF, the vrf master should be
preferred for address selection.  If it isn't, the user has a hard time
getting the system to select to their preference - the code will pick
the address off the first in-VRF interface it can find, which on a
router could well be a non-routable address.

Signed-off-by: David Lamparter <equinox@diac24.net>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
[dsa: Fixed comment style and removed extra blank link ]
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c