Searched refs:ip_dev (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 1566 struct net_device *ip_dev; in irdma_iw_get_vlan_prio() local 1571 for_each_netdev_rcu (&init_net, ip_dev) { in irdma_iw_get_vlan_prio() 1572 if (ipv6_chk_addr(&init_net, &laddr6, ip_dev, 1)) { in irdma_iw_get_vlan_prio() 1573 ndev = ip_dev; in irdma_iw_get_vlan_prio() 1603 struct net_device *ip_dev = NULL; in irdma_get_vlan_mac_ipv6() local 1616 for_each_netdev_rcu (&init_net, ip_dev) { in irdma_get_vlan_mac_ipv6() 1617 if (ipv6_chk_addr(&init_net, &laddr6, ip_dev, 1)) { in irdma_get_vlan_mac_ipv6() 1619 *vlan_id = rdma_vlan_dev_vlan_id(ip_dev); in irdma_get_vlan_mac_ipv6() 1620 if (ip_dev->dev_addr && mac) in irdma_get_vlan_mac_ipv6() 1621 ether_addr_copy(mac, ip_dev->dev_addr); in irdma_get_vlan_mac_ipv6() [all …]
|
H A D | utils.c | 340 struct net_device *ip_dev; in irdma_add_ipv6_addr() local 346 for_each_netdev_rcu (&init_net, ip_dev) { in irdma_add_ipv6_addr() 347 if (((rdma_vlan_dev_vlan_id(ip_dev) < 0xFFFF && in irdma_add_ipv6_addr() 348 rdma_vlan_dev_real_dev(ip_dev) == iwdev->netdev) || in irdma_add_ipv6_addr() 349 ip_dev == iwdev->netdev) && in irdma_add_ipv6_addr() 350 (READ_ONCE(ip_dev->flags) & IFF_UP)) { in irdma_add_ipv6_addr() 351 idev = __in6_dev_get(ip_dev); in irdma_add_ipv6_addr() 361 rdma_vlan_dev_vlan_id(ip_dev), in irdma_add_ipv6_addr() 362 ip_dev->dev_addr); in irdma_add_ipv6_addr() 367 ip_dev->dev_addr, in irdma_add_ipv6_addr()
|