Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 25 of 68) sorted by relevance

123

/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.h37 int mlx5_esw_bridge_vport_link(int ifindex, u16 vport_num, u16 esw_owner_vhca_id,
40 int mlx5_esw_bridge_vport_unlink(int ifindex, u16 vport_num, u16 esw_owner_vhca_id,
43 int mlx5_esw_bridge_vport_peer_link(int ifindex, u16 vport_num, u16 esw_owner_vhca_id,
46 int mlx5_esw_bridge_vport_peer_unlink(int ifindex, u16 vport_num, u16 esw_owner_vhca_id,
Dbridge.c53 int ifindex; member
602 static struct mlx5_esw_bridge *mlx5_esw_bridge_create(int ifindex, in mlx5_esw_bridge_create() argument
622 bridge->ifindex = ifindex; in mlx5_esw_bridge_create()
657 mlx5_esw_bridge_lookup(int ifindex, struct mlx5_esw_bridge_offloads *br_offloads) in mlx5_esw_bridge_lookup() argument
664 if (bridge->ifindex == ifindex) { in mlx5_esw_bridge_lookup()
677 bridge = mlx5_esw_bridge_create(ifindex, br_offloads); in mlx5_esw_bridge_lookup()
1144 static int mlx5_esw_bridge_vport_link_with_flags(int ifindex, u16 vport_num, u16 esw_owner_vhca_id, in mlx5_esw_bridge_vport_link_with_flags() argument
1152 bridge = mlx5_esw_bridge_lookup(ifindex, br_offloads); in mlx5_esw_bridge_vport_link_with_flags()
1170 int mlx5_esw_bridge_vport_link(int ifindex, u16 vport_num, u16 esw_owner_vhca_id, in mlx5_esw_bridge_vport_link() argument
1174 return mlx5_esw_bridge_vport_link_with_flags(ifindex, vport_num, esw_owner_vhca_id, 0, in mlx5_esw_bridge_vport_link()
[all …]
/drivers/net/bonding/
Dbond_netlink.c186 int ifindex = nla_get_u32(data[IFLA_BOND_ACTIVE_SLAVE]); in bond_changelink() local
190 if (ifindex != 0) { in bond_changelink()
192 ifindex); in bond_changelink()
303 int ifindex = nla_get_u32(data[IFLA_BOND_PRIMARY]); in bond_changelink() local
307 dev = __dev_get_by_index(dev_net(bond_dev), ifindex); in bond_changelink()
540 int ifindex; in bond_option_active_slave_get_ifindex() local
544 ifindex = slave ? slave->ifindex : 0; in bond_option_active_slave_get_ifindex()
546 return ifindex; in bond_option_active_slave_get_ifindex()
554 int ifindex, i, targets_added; in bond_fill_info() local
561 ifindex = bond_option_active_slave_get_ifindex(bond); in bond_fill_info()
[all …]
/drivers/net/vxlan/
Dvxlan_core.c199 __be16 port, u32 flags, int ifindex) in vxlan_find_sock() argument
209 vs->sock->sk->sk_bound_dev_if == ifindex) in vxlan_find_sock()
215 static struct vxlan_dev *vxlan_vs_find_vni(struct vxlan_sock *vs, int ifindex, in vxlan_vs_find_vni() argument
232 cfg->remote_ifindex != ifindex) in vxlan_vs_find_vni()
243 static struct vxlan_dev *vxlan_find_vni(struct net *net, int ifindex, in vxlan_find_vni() argument
249 vs = vxlan_find_sock(net, family, port, flags, ifindex); in vxlan_find_vni()
253 return vxlan_vs_find_vni(vs, ifindex, vni); in vxlan_find_vni()
299 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
554 __be32 vni, __u32 ifindex) in vxlan_fdb_find_rdst() argument
562 rd->remote_ifindex == ifindex) in vxlan_fdb_find_rdst()
[all …]
/drivers/staging/gdm724x/
Dnetlink_k.c35 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/
Dvrf.c97 int ifindex; member
120 int ifindex; member
198 return vrf->ifindex; in vrf_map_elem_get_vrf_ifindex()
218 int ifindex, int users) in vrf_map_elem_init() argument
221 me->ifindex = ifindex; in vrf_map_elem_init()
284 vrf_map_elem_init(new_me, table_id, dev->ifindex, 0); in vrf_map_register_dev()
361 int ifindex; in vrf_ifindex_lookup_by_table_id() local
366 ifindex = -EPERM; in vrf_ifindex_lookup_by_table_id()
372 ifindex = -ENODEV; in vrf_ifindex_lookup_by_table_id()
376 ifindex = vrf_map_elem_get_vrf_ifindex(me); in vrf_ifindex_lookup_by_table_id()
[all …]
Dtun.c138 unsigned int ifindex; member
2777 dev->ifindex = tfile->ifindex; in tun_set_iff()
3018 int ifindex; in __tun_chr_ioctl() local
3072 if (copy_from_user(&ifindex, argp, sizeof(ifindex))) in __tun_chr_ioctl()
3075 if (ifindex < 0) in __tun_chr_ioctl()
3078 tfile->ifindex = ifindex; in __tun_chr_ioctl()
3411 tfile->ifindex = 0; in tun_chr_open()
Dloopback.c220 BUG_ON(dev->ifindex != LOOPBACK_IFINDEX); in loopback_net_init()
/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.c68 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()
Dl2t.h61 int ifindex; /* neighbor's net_device's ifindex */ member
/drivers/net/ppp/
Dpppoe.c160 unsigned char *addr, int ifindex) in __get_item() argument
168 ret->pppoe_ifindex == ifindex) in __get_item()
198 char *addr, int ifindex) in __delete_item() argument
208 ret->pppoe_ifindex == ifindex) { in __delete_item()
224 unsigned char *addr, int ifindex) in get_item() argument
229 po = __get_item(pn, sid, addr, ifindex); in get_item()
244 int ifindex; in get_item_by_addr() local
249 ifindex = dev->ifindex; in get_item_by_addr()
252 sp->sa_addr.pppoe.remote, ifindex); in get_item_by_addr()
259 char *addr, int ifindex) in delete_item() argument
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c87 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()
424 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get()
441 if (!addreq(e, addr) && e->ifindex == ifidx && in cxgb4_l2t_get()
457 e->ifindex = ifidx; in cxgb4_l2t_get()
[all …]
Dl2t.h77 int ifindex; /* neighbor's net_device's ifindex */ member
/drivers/net/can/dev/
Dskb.c205 can_skb_prv(skb)->ifindex = dev->ifindex; in alloc_can_skb()
236 can_skb_prv(skb)->ifindex = dev->ifindex; in alloc_canfd_skb()
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbridge.c139 int ifindex = upper->ifindex; in mlx5_esw_bridge_port_changeupper() local
153 mlx5_esw_bridge_vport_link(ifindex, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
155 mlx5_esw_bridge_vport_unlink(ifindex, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
159 mlx5_esw_bridge_vport_peer_link(ifindex, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
161 mlx5_esw_bridge_vport_peer_unlink(ifindex, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
/drivers/net/ipvlan/
Dipvlan_l3s.c67 .flowi6_iif = sdev->ifindex, in ipvlan_l3_rcv()
104 skb->skb_iif = skb->dev->ifindex; in ipvlan_nf_input()
107 IP6CB(skb)->iif = skb->dev->ifindex; in ipvlan_nf_input()
/drivers/net/team/
Dteam_mode_activebackup.c74 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()
/drivers/net/can/
Dvxcan.c115 iflink = peer ? peer->ifindex : 0; in vxcan_get_iflink()
208 if (ifmp && dev->ifindex) in vxcan_newlink()
209 peer->ifindex = ifmp->ifi_index; in vxcan_newlink()
/drivers/net/ethernet/rocker/
Drocker_ofdpa.c142 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/net/ethernet/qlogic/qed/
Dqed_nvmetcp_ip_services.c171 if (upper->ifindex == ndev->ifindex) in qed_validate_ndev()
/drivers/scsi/cxgbi/
Dlibcxgbi.c591 int ifindex) in find_route_ipv4() argument
596 dport, sport, IPPROTO_TCP, tos, ifindex); in find_route_ipv4()
604 cxgbi_check_route(struct sockaddr *dst_addr, int ifindex) in cxgbi_check_route() argument
619 daddr->sin_port, 0, ifindex); in cxgbi_check_route()
706 int ifindex) in find_route_ipv6() argument
711 fl.flowi6_oif = ifindex; in find_route_ipv6()
720 cxgbi_check_route6(struct sockaddr *dst_addr, int ifindex) in cxgbi_check_route6() argument
734 rt = find_route_ipv6(NULL, &daddr6->sin6_addr, ifindex); in cxgbi_check_route6()
2863 int ifindex = 0; in cxgbi_ep_connect() local
2880 csk = cxgbi_check_route(dst_addr, ifindex); in cxgbi_ep_connect()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c123 attr->fl.fl4.flowi4_oif = uplink_dev->ifindex; in mlx5e_route_lookup_ipv4_get()
263 e->route_dev_ifindex = attr.route_dev->ifindex; in mlx5e_tc_tun_create_header_ipv4()
375 e->route_dev_ifindex = attr.route_dev->ifindex; in mlx5e_tc_tun_update_header_ipv4()
529 e->route_dev_ifindex = attr.route_dev->ifindex; in mlx5e_tc_tun_create_header_ipv6()
640 e->route_dev_ifindex = attr.route_dev->ifindex; in mlx5e_tc_tun_update_header_ipv6()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls_rxtx.c320 th->dest, netdev->ifindex); in tls_update_resync_sn()
328 netdev->ifindex, 0); in tls_update_resync_sn()
/drivers/infiniband/core/
Daddr.c183 header->ifindex = dev_addr->bound_dev_if; in ib_nl_ip_send_msg()
242 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_src_l2_addr()
543 addr->bound_dev_if = ndev->ifindex; in set_addr_netns_by_gid_rcu()
/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c625 ret = qtnf_cmd_netdev_changeupper(vif, vif->netdev->ifindex); in qtnf_core_mac_attach()
697 br_domain = brdev->ifindex; in qtnf_core_netdevice_event()
699 br_domain = ndev->ifindex; in qtnf_core_netdevice_event()

123