Home
last modified time | relevance | path

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

12

/drivers/staging/silicom/
Dbpctl_mod.c80 int ifindex; member
117 static int get_dev_idx(int ifindex);
149 int i = 0, ifindex, idx_dev = 0; in bp_device_event() local
151 ifindex = dev->ifindex; in bp_device_event()
192 bpctl_dev_arr[idx_dev].ifindex = ifindex; in bp_device_event()
249 if (((dev_num = get_dev_idx(dev->ifindex)) == -1) || in bp_device_event()
5288 static int get_dev_idx(int ifindex) in get_dev_idx() argument
5295 if (ifindex == bpctl_dev_arr[idx_dev].ifindex) in get_dev_idx()
5302 static bpctl_dev_t *get_dev_idx_p(int ifindex) in get_dev_idx_p() argument
5309 if (ifindex == bpctl_dev_arr[idx_dev].ifindex) in get_dev_idx_p()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c93 static inline unsigned int arp_hash(const u32 *key, int ifindex) in arp_hash() argument
95 return jhash_2words(*key, ifindex, 0) & L2T_HASH_MASK; in arp_hash()
98 static inline unsigned int ipv6_hash(const u32 *key, int ifindex) in ipv6_hash() argument
102 return L2T_SZ_HALF + (jhash_2words(xor, ifindex, 0) & L2T_HASH_MASK); in ipv6_hash()
105 static unsigned int addr_hash(const u32 *addr, int addr_len, int ifindex) in addr_hash() argument
107 return addr_len == 4 ? arp_hash(addr, ifindex) : in addr_hash()
108 ipv6_hash(addr, ifindex); in addr_hash()
368 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get()
383 if (!addreq(e, addr) && e->ifindex == ifidx && in cxgb4_l2t_get()
397 e->ifindex = ifidx; in cxgb4_l2t_get()
[all …]
Dl2t.h61 int ifindex; /* neighbor's net_device's ifindex */ member
/drivers/net/ppp/
Dpppoe.c167 unsigned char *addr, int ifindex) in __get_item() argument
175 ret->pppoe_ifindex == ifindex) in __get_item()
205 char *addr, int ifindex) in __delete_item() argument
215 ret->pppoe_ifindex == ifindex) { in __delete_item()
231 unsigned char *addr, int ifindex) in get_item() argument
236 po = __get_item(pn, sid, addr, ifindex); in get_item()
251 int ifindex; in get_item_by_addr() local
256 ifindex = dev->ifindex; in get_item_by_addr()
259 sp->sa_addr.pppoe.remote, ifindex); in get_item_by_addr()
266 char *addr, int ifindex) in delete_item() argument
[all …]
Dpppopns.c277 sk_tcp->sk_bound_dev_if = dst->dev->ifindex; in pppopns_connect()
Dpppolac.c306 sk_udp->sk_bound_dev_if = dst->dev->ifindex; in pppolac_connect()
/drivers/staging/gdm72xx/
Dnetlink_k.c53 int ifindex; in netlink_rcv_cb() local
65 memcpy(&ifindex, ND_NLMSG_IFIDX(nlh), ND_IFINDEX_LEN); in netlink_rcv_cb()
70 dev = dev_get_by_index(&init_net, ifindex); in netlink_rcv_cb()
77 ifindex); in netlink_rcv_cb()
/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()
240 int hash = arp_hash(e->addr, e->ifindex, d); in alloc_l2e()
319 ifidx = neigh->dev->ifindex; in t3_l2t_get()
334 if (e->addr == addr && e->ifindex == ifidx && in t3_l2t_get()
350 e->ifindex = ifidx; in t3_l2t_get()
404 int ifidx = neigh->dev->ifindex; in t3_l2t_update()
409 if (e->addr == addr && e->ifindex == ifidx) { in t3_l2t_update()
Dl2t.h61 int ifindex; /* neighbor's net_device's ifindex */ member
/drivers/net/team/
Dteam_mode_activebackup.c78 ctx->data.u32_val = active_port->dev->ifindex; in ab_active_port_get()
89 if (port->dev->ifindex == ctx->data.u32_val) { in ab_active_port_set()
Dteam.c1964 int ifindex; in team_nl_team_get() local
1971 ifindex = nla_get_u32(info->attrs[TEAM_ATTR_TEAM_IFINDEX]); in team_nl_team_get()
1972 dev = dev_get_by_index(net, ifindex); in team_nl_team_get()
2020 opt_inst_info->port->dev->ifindex)) in team_nl_fill_one_option_get()
2122 if (nla_put_u32(skb, TEAM_ATTR_TEAM_IFINDEX, team->dev->ifindex)) in team_nl_send_options_get()
2281 opt_inst_info->port->dev->ifindex : 0; in team_nl_cmd_options_set()
2342 if (nla_put_u32(skb, TEAM_ATTR_PORT_IFINDEX, port->dev->ifindex)) in team_nl_fill_one_port_get()
2390 if (nla_put_u32(skb, TEAM_ATTR_TEAM_IFINDEX, team->dev->ifindex)) in team_nl_send_port_list_get()
Dteam_mode_loadbalance.c349 ctx->data.u32_val = port ? port->dev->ifindex : 0; in lb_tx_hash_to_port_mapping_get()
361 if (ctx->data.u32_val == port->dev->ifindex && in lb_tx_hash_to_port_mapping_set()
/drivers/net/
Dvxlan.c186 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
333 __be32 ip, __be16 port, __u32 vni, __u32 ifindex) in vxlan_fdb_append() argument
342 rd->remote_ifindex == ifindex) in vxlan_fdb_append()
352 rd->remote_ifindex = ifindex; in vxlan_fdb_append()
362 __be16 port, __u32 vni, __u32 ifindex, in vxlan_fdb_create() argument
387 int rc = vxlan_fdb_append(f, ip, port, vni, ifindex); in vxlan_fdb_create()
409 f->remote.remote_ifindex = ifindex; in vxlan_fdb_create()
461 u32 vni, ifindex; in vxlan_fdb_add() local
497 ifindex = nla_get_u32(tb[NDA_IFINDEX]); in vxlan_fdb_add()
498 tdev = dev_get_by_index(net, ifindex); in vxlan_fdb_add()
[all …]
Dveth.c95 data[0] = peer ? peer->ifindex : 0; in veth_get_ethtool_stats()
352 if (ifmp && (dev->ifindex != 0)) in veth_newlink()
353 peer->ifindex = ifmp->ifi_index; in veth_newlink()
Dloopback.c205 BUG_ON(dev->ifindex != LOOPBACK_IFINDEX); in loopback_net_init()
Difb.c103 skb->skb_iif = _dev->ifindex; in ri_tasklet()
Dmacvlan.c505 dev->iflink = lowerdev->ifindex; in macvlan_init()
Dmacvtap.c1081 dev, "tap%d", dev->ifindex); in macvtap_device_event()
/drivers/staging/silicom/bypasslib/
Dbypass.c71 if (dev->ifindex == if_index) { in doit()
147 (dev->ifindex == if_index)) { in is_bypass_dev()
445 if (dev->ifindex == if_index) { in get_bypass_info()
/drivers/net/can/
Dslcan.c199 can_skb_prv(skb)->ifindex = sl->dev->ifindex; in slc_bump()
Ddev.c516 can_skb_prv(skb)->ifindex = dev->ifindex; in alloc_can_skb()
/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c105 priv->dev->iflink = ppriv->dev->ifindex; in __ipoib_vlan_add()
/drivers/net/wireless/prism54/
Dislpci_mgt.c332 header->device_id = priv->ndev->ifindex; in islpci_mgt_receive()
/drivers/infiniband/core/
Daddr.c101 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_addr()
/drivers/base/
Dcore.c1943 "DEVICE=n%u", net->ifindex); in create_syslog_header()

12