Re: [PATCH net-next v2] net: Updates to netif_index_is_vrf

2015-08-17 Thread David Miller
From: David Ahern d...@cumulusnetworks.com Date: Sun, 16 Aug 2015 07:49:20 -0600 As Eric noted netif_index_is_vrf is not called with rcu_read_lock held, so wrap the dev_get_by_index_rcu in rcu_read_lock and unlock. If VRF is not enabled or oif is 0 skip the device lookup. In both cases

[PATCH net-next v2] net: Updates to netif_index_is_vrf

2015-08-16 Thread David Ahern
As Eric noted netif_index_is_vrf is not called with rcu_read_lock held, so wrap the dev_get_by_index_rcu in rcu_read_lock and unlock. If VRF is not enabled or oif is 0 skip the device lookup. In both cases index cannot be the VRF master. Signed-off-by: David Ahern d...@cumulusnetworks.com ---