/drivers/net/bonding/ |
D | bond_netlink.c | 179 int ifindex = nla_get_u32(data[IFLA_BOND_ACTIVE_SLAVE]); in bond_changelink() local 183 if (ifindex != 0) { in bond_changelink() 185 ifindex); in bond_changelink() 296 int ifindex = nla_get_u32(data[IFLA_BOND_PRIMARY]); in bond_changelink() local 300 dev = __dev_get_by_index(dev_net(bond_dev), ifindex); in bond_changelink() 513 int ifindex; in bond_option_active_slave_get_ifindex() local 517 ifindex = slave ? slave->ifindex : 0; in bond_option_active_slave_get_ifindex() 519 return ifindex; in bond_option_active_slave_get_ifindex() 527 int ifindex, i, targets_added; in bond_fill_info() local 534 ifindex = bond_option_active_slave_get_ifindex(bond); in bond_fill_info() [all …]
|
/drivers/staging/gdm724x/ |
D | netlink_k.c | 35 int ifindex; in netlink_rcv_cb() local 55 memcpy(&ifindex, ND_NLMSG_IFIDX(nlh), ND_IFINDEX_LEN); in netlink_rcv_cb() 59 dev = dev_get_by_index(&init_net, ifindex); in netlink_rcv_cb() 64 pr_err("nl cb - dev (%d) not found\n", ifindex); in netlink_rcv_cb()
|
/drivers/net/ |
D | vxlan.c | 189 __be16 port, u32 flags, int ifindex) in vxlan_find_sock() argument 199 vs->sock->sk->sk_bound_dev_if == ifindex) in vxlan_find_sock() 205 static struct vxlan_dev *vxlan_vs_find_vni(struct vxlan_sock *vs, int ifindex, in vxlan_vs_find_vni() argument 222 cfg->remote_ifindex != ifindex) in vxlan_vs_find_vni() 233 static struct vxlan_dev *vxlan_find_vni(struct net *net, int ifindex, in vxlan_find_vni() argument 239 vs = vxlan_find_sock(net, family, port, flags, ifindex); in vxlan_find_vni() 243 return vxlan_vs_find_vni(vs, ifindex, vni); in vxlan_find_vni() 274 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info() 522 __be32 vni, __u32 ifindex) in vxlan_fdb_find_rdst() argument 530 rd->remote_ifindex == ifindex) in vxlan_fdb_find_rdst() [all …]
|
D | vrf.c | 182 fl6.flowi6_oif = dev->ifindex; in vrf_process_v6_outbound() 259 fl4.flowi4_oif = vrf_dev->ifindex; in vrf_process_v4_outbound() 952 int ifindex, in vrf_ip6_route_lookup() argument 958 return ip6_pol_route(net, vrf->fib6_table, ifindex, fl6, skb, flags); in vrf_ip6_route_lookup() 962 int ifindex) in vrf_ip6_input_dst() argument 966 .flowi6_iif = ifindex, in vrf_ip6_input_dst() 976 rt6 = vrf_ip6_route_lookup(net, vrf_dev, &fl6, ifindex, skb, in vrf_ip6_input_dst() 999 skb->skb_iif = vrf_dev->ifindex; in vrf_ip6_rcv() 1010 skb->skb_iif = vrf_dev->ifindex; in vrf_ip6_rcv() 1041 skb->skb_iif = vrf_dev->ifindex; in vrf_ip_rcv() [all …]
|
D | loopback.c | 218 BUG_ON(dev->ifindex != LOOPBACK_IFINDEX); in loopback_net_init()
|
D | macvtap.c | 157 snprintf(tap_name, IFNAMSIZ, "tap%d", dev->ifindex); in macvtap_device_event()
|
D | veth.c | 154 data[0] = peer ? peer->ifindex : 0; in veth_get_ethtool_stats() 1019 iflink = peer ? peer->ifindex : 0; in veth_get_iflink() 1296 if (ifmp && (dev->ifindex != 0)) in veth_newlink() 1297 peer->ifindex = ifmp->ifi_index; in veth_newlink()
|
D | tun.c | 169 unsigned int ifindex; member 2795 dev->ifindex = tfile->ifindex; in tun_set_iff() 3036 unsigned int ifindex, carrier; in __tun_chr_ioctl() local 3094 if (copy_from_user(&ifindex, argp, sizeof(ifindex))) in __tun_chr_ioctl() 3098 tfile->ifindex = ifindex; in __tun_chr_ioctl() 3428 tfile->ifindex = 0; in tun_chr_open()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 68 static inline unsigned int arp_hash(u32 key, int ifindex, in arp_hash() argument 71 return jhash_2words(key, ifindex, 0) & (d->nentries - 1); in arp_hash() 241 int hash = arp_hash(e->addr, e->ifindex, d); in alloc_l2e() 320 ifidx = neigh->dev->ifindex; in t3_l2t_get() 335 if (e->addr == addr && e->ifindex == ifidx && in t3_l2t_get() 351 e->ifindex = ifidx; in t3_l2t_get() 405 int ifidx = neigh->dev->ifindex; in t3_l2t_update() 410 if (e->addr == addr && e->ifindex == ifidx) { in t3_l2t_update()
|
D | l2t.h | 61 int ifindex; /* neighbor's net_device's ifindex */ member
|
/drivers/net/ppp/ |
D | pppoe.c | 162 unsigned char *addr, int ifindex) in __get_item() argument 170 ret->pppoe_ifindex == ifindex) in __get_item() 200 char *addr, int ifindex) in __delete_item() argument 210 ret->pppoe_ifindex == ifindex) { in __delete_item() 226 unsigned char *addr, int ifindex) in get_item() argument 231 po = __get_item(pn, sid, addr, ifindex); in get_item() 246 int ifindex; in get_item_by_addr() local 251 ifindex = dev->ifindex; in get_item_by_addr() 254 sp->sa_addr.pppoe.remote, ifindex); in get_item_by_addr() 261 char *addr, int ifindex) in delete_item() argument [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 87 int ifindex) in arp_hash() argument 91 return jhash_2words(*key, ifindex, 0) % l2t_size_half; in arp_hash() 95 int ifindex) in ipv6_hash() argument 101 (jhash_2words(xor, ifindex, 0) % l2t_size_half)); in ipv6_hash() 105 int addr_len, int ifindex) in addr_hash() argument 107 return addr_len == 4 ? arp_hash(d, addr, ifindex) : in addr_hash() 108 ipv6_hash(d, addr, ifindex); in addr_hash() 428 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get() 445 if (!addreq(e, addr) && e->ifindex == ifidx && in cxgb4_l2t_get() 461 e->ifindex = ifidx; in cxgb4_l2t_get() [all …]
|
D | l2t.h | 77 int ifindex; /* neighbor's net_device's ifindex */ member
|
/drivers/net/team/ |
D | team_mode_activebackup.c | 74 ctx->data.u32_val = active_port->dev->ifindex; in ab_active_port_get() 85 if (port->dev->ifindex == ctx->data.u32_val) { in ab_active_port_set()
|
D | team.c | 2279 int ifindex; in team_nl_team_get() local 2286 ifindex = nla_get_u32(info->attrs[TEAM_ATTR_TEAM_IFINDEX]); in team_nl_team_get() 2287 dev = dev_get_by_index(net, ifindex); in team_nl_team_get() 2335 opt_inst_info->port->dev->ifindex)) in team_nl_fill_one_option_get() 2439 if (nla_put_u32(skb, TEAM_ATTR_TEAM_IFINDEX, team->dev->ifindex)) in team_nl_send_options_get() 2604 opt_inst_info->port->dev->ifindex : 0; in team_nl_cmd_options_set() 2668 if (nla_put_u32(skb, TEAM_ATTR_PORT_IFINDEX, port->dev->ifindex)) in team_nl_fill_one_port_get() 2718 if (nla_put_u32(skb, TEAM_ATTR_TEAM_IFINDEX, team->dev->ifindex)) in team_nl_send_port_list_get()
|
/drivers/net/can/ |
D | vxcan.c | 113 iflink = peer ? peer->ifindex : 0; in vxcan_get_iflink() 207 if (ifmp && dev->ifindex) in vxcan_newlink() 208 peer->ifindex = ifmp->ifi_index; in vxcan_newlink()
|
D | dev.c | 657 can_skb_prv(skb)->ifindex = dev->ifindex; in alloc_can_skb() 685 can_skb_prv(skb)->ifindex = dev->ifindex; in alloc_canfd_skb()
|
D | slcan.c | 217 can_skb_prv(skb)->ifindex = sl->dev->ifindex; in slc_bump()
|
/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 142 int ifindex; /* key */ member 2212 ofdpa_internal_vlan_tbl_find(const struct ofdpa *ofdpa, int ifindex) in ofdpa_internal_vlan_tbl_find() argument 2217 entry, ifindex) { in ofdpa_internal_vlan_tbl_find() 2218 if (found->ifindex == ifindex) in ofdpa_internal_vlan_tbl_find() 2226 int ifindex) in ofdpa_port_internal_vlan_id_get() argument 2238 entry->ifindex = ifindex; in ofdpa_port_internal_vlan_id_get() 2242 found = ofdpa_internal_vlan_tbl_find(ofdpa, ifindex); in ofdpa_port_internal_vlan_id_get() 2249 hash_add(ofdpa->internal_vlan_tbl, &found->entry, found->ifindex); in ofdpa_port_internal_vlan_id_get() 2314 int ifindex) in ofdpa_port_internal_vlan_id_put() argument 2323 found = ofdpa_internal_vlan_tbl_find(ofdpa, ifindex); in ofdpa_port_internal_vlan_id_put() [all …]
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 589 int ifindex) in find_route_ipv4() argument 594 dport, sport, IPPROTO_TCP, tos, ifindex); in find_route_ipv4() 602 cxgbi_check_route(struct sockaddr *dst_addr, int ifindex) in cxgbi_check_route() argument 617 daddr->sin_port, 0, ifindex); in cxgbi_check_route() 704 int ifindex) in find_route_ipv6() argument 709 fl.flowi6_oif = ifindex; in find_route_ipv6() 718 cxgbi_check_route6(struct sockaddr *dst_addr, int ifindex) in cxgbi_check_route6() argument 732 rt = find_route_ipv6(NULL, &daddr6->sin6_addr, ifindex); in cxgbi_check_route6() 2560 int ifindex = 0; in cxgbi_ep_connect() local 2577 csk = cxgbi_check_route(dst_addr, ifindex); in cxgbi_ep_connect() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 328 th->dest, netdev->ifindex); in tls_update_resync_sn() 336 netdev->ifindex, 0); in tls_update_resync_sn()
|
/drivers/infiniband/core/ |
D | addr.c | 181 header->ifindex = dev_addr->bound_dev_if; in ib_nl_ip_send_msg() 240 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_src_l2_addr() 539 addr->bound_dev_if = ndev->ifindex; in set_addr_netns_by_gid_rcu()
|
/drivers/net/ipvlan/ |
D | ipvlan_l3s.c | 67 .flowi6_iif = sdev->ifindex, in ipvlan_l3_rcv()
|
D | ipvtap.c | 150 snprintf(tap_name, IFNAMSIZ, "tap%d", dev->ifindex); in ipvtap_device_event()
|
/drivers/infiniband/sw/rxe/ |
D | rxe_net.c | 92 fl.flowi4_oif = ndev->ifindex; in rxe_find_route4() 115 fl6.flowi6_oif = ndev->ifindex; in rxe_find_route6()
|