• Eric Dumazet's avatar
    macvlan: use the right RCU api · e052f7e6
    Eric Dumazet authored
    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: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e052f7e6
macvlan.c 25.1 KB