Eric Dumazet e052f7e64d macvlan: use the right RCU api
Make sure we use proper API to fetch dev->rx_handler_data,
instead of ugly casts.

Rename macvlan_port_get() to macvlan_port_get_rtnl() to document fact
that we hold RTNL when needed, with lockdep support.

This removes sparse warnings as well (CONFIG_SPARSE_RCU_POINTER=y)

CHECK   drivers/net/macvlan.c
drivers/net/macvlan.c:706:37: warning: cast removes address space of expression
drivers/net/macvlan.c:775:16: warning: cast removes address space of expression
drivers/net/macvlan.c:924:16: warning: cast removes address space of expression

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-30 17:31:25 -04:00
..
2012-12-03 11:16:10 -08:00
2013-03-17 12:16:38 -04:00
2013-03-28 01:20:42 -04:00
2013-03-27 12:48:33 -04:00
2013-03-28 01:20:42 -04:00
2012-12-28 15:24:19 -08:00
2013-01-14 15:13:39 -05:00
2013-03-26 12:27:18 -04:00
2013-03-30 17:31:25 -04:00
2013-01-20 15:48:14 -08:00
2013-03-27 00:52:06 -04:00