Lines Matching refs:ndev

212 struct cxgbi_device *cxgbi_device_find_by_netdev(struct net_device *ndev,  in cxgbi_device_find_by_netdev()  argument
219 if (ndev->priv_flags & IFF_802_1Q_VLAN) { in cxgbi_device_find_by_netdev()
220 vdev = ndev; in cxgbi_device_find_by_netdev()
221 ndev = vlan_dev_real_dev(ndev); in cxgbi_device_find_by_netdev()
223 "vlan dev %s -> %s.\n", vdev->name, ndev->name); in cxgbi_device_find_by_netdev()
229 if (ndev == cdev->ports[i]) { in cxgbi_device_find_by_netdev()
240 "ndev 0x%p, %s, NO match found.\n", ndev, ndev->name); in cxgbi_device_find_by_netdev()
245 struct cxgbi_device *cxgbi_device_find_by_netdev_rcu(struct net_device *ndev, in cxgbi_device_find_by_netdev_rcu() argument
252 if (ndev->priv_flags & IFF_802_1Q_VLAN) { in cxgbi_device_find_by_netdev_rcu()
253 vdev = ndev; in cxgbi_device_find_by_netdev_rcu()
254 ndev = vlan_dev_real_dev(ndev); in cxgbi_device_find_by_netdev_rcu()
255 pr_info("vlan dev %s -> %s.\n", vdev->name, ndev->name); in cxgbi_device_find_by_netdev_rcu()
261 if (ndev == cdev->ports[i]) { in cxgbi_device_find_by_netdev_rcu()
273 "ndev 0x%p, %s, NO match found.\n", ndev, ndev->name); in cxgbi_device_find_by_netdev_rcu()
279 static struct cxgbi_device *cxgbi_device_find_by_mac(struct net_device *ndev, in cxgbi_device_find_by_mac() argument
286 if (ndev->priv_flags & IFF_802_1Q_VLAN) { in cxgbi_device_find_by_mac()
287 vdev = ndev; in cxgbi_device_find_by_mac()
288 ndev = vlan_dev_real_dev(ndev); in cxgbi_device_find_by_mac()
289 pr_info("vlan dev %s -> %s.\n", vdev->name, ndev->name); in cxgbi_device_find_by_mac()
295 if (!memcmp(ndev->dev_addr, cdev->ports[i]->dev_addr, in cxgbi_device_find_by_mac()
308 ndev, ndev->name); in cxgbi_device_find_by_mac()
360 chba->ndev = cdev->ports[i]; in cxgbi_hbas_add()
597 struct net_device *ndev; in cxgbi_check_route() local
621 ndev = n->dev; in cxgbi_check_route()
626 ndev->name); in cxgbi_check_route()
631 if (ndev->flags & IFF_LOOPBACK) { in cxgbi_check_route()
632 ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); in cxgbi_check_route()
633 mtu = ndev->mtu; in cxgbi_check_route()
635 n->dev->name, ndev->name, mtu); in cxgbi_check_route()
638 cdev = cxgbi_device_find_by_netdev(ndev, &port); in cxgbi_check_route()
641 &daddr->sin_addr.s_addr, ndev->name); in cxgbi_check_route()
648 port, ndev->name, cdev); in cxgbi_check_route()
698 struct net_device *ndev; in cxgbi_check_route6() local
729 ndev = n->dev; in cxgbi_check_route6()
734 ntohs(daddr6->sin6_port), ndev->name); in cxgbi_check_route6()
739 cdev = cxgbi_device_find_by_netdev(ndev, &port); in cxgbi_check_route6()
741 cdev = cxgbi_device_find_by_mac(ndev, &port); in cxgbi_check_route6()
744 daddr6->sin6_addr.s6_addr, ndev->name); in cxgbi_check_route6()
751 ndev->name, cdev); in cxgbi_check_route6()
2114 struct net_device *ndev = cdev->ports[csk->port_id]; in cxgbi_conn_alloc_pdu() local
2115 ndev->stats.tx_dropped++; in cxgbi_conn_alloc_pdu()
2627 if (!chba->ndev) { in cxgbi_set_host_param()
2635 shost, chba, chba->ndev->name, param, buflen, buf); in cxgbi_set_host_param()
2642 "hba %s, req. ipv4 %pI4.\n", chba->ndev->name, &addr); in cxgbi_set_host_param()
2661 if (!chba->ndev) { in cxgbi_get_host_param()
2669 shost, chba, chba->ndev->name, param); in cxgbi_get_host_param()
2673 len = sysfs_format_mac(buf, chba->ndev->dev_addr, 6); in cxgbi_get_host_param()
2676 len = sprintf(buf, "%s\n", chba->ndev->name); in cxgbi_get_host_param()
2687 "hba %s, addr %s.\n", chba->ndev->name, buf); in cxgbi_get_host_param()
2776 ep, cep, csk, hba, hba->ndev->name); in cxgbi_ep_connect()