/linux-master/net/netfilter/ |
H A D | xt_TEE.c | 73 priv->oif = dev->ifindex; 76 if (dev->ifindex == priv->oif) 81 priv->oif = dev->ifindex; 82 else if (dev->ifindex == priv->oif) 119 priv->oif = dev->ifindex;
|
H A D | nft_flow_offload.c | 34 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; 204 route->tuple[!dir].in.ifindex = info.indev->ifindex; 215 route->tuple[dir].out.ifindex = info.outdev->ifindex; 216 route->tuple[dir].out.hw_ifindex = info.hw_outdev->ifindex; 236 fl.u.ip4.flowi4_oif = nft_in(pkt)->ifindex; 237 fl.u.ip4.flowi4_iif = this_dst->dev->ifindex; 245 fl.u.ip6.flowi6_oif = nft_in(pkt)->ifindex; [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xfrm_info.c | 298 int ifindex; local 307 ifindex = if_nametoindex("ipsec0"); 308 if (!ASSERT_NEQ(ifindex, 0, "ipsec0 ifindex")) 310 tc_hook.ifindex = ifindex;
|
H A D | xdp_bonding.c | 102 int ifindex; local 104 ifindex = if_nametoindex(iface); 105 if (!ASSERT_GT(ifindex, 0, "get ifindex")) 111 link = bpf_program__attach_xdp(prog, ifindex); 218 int ifindex; local 224 ifindex = if_nametoindex("bond1"); 225 if (!ASSERT_GT(ifindex, 0, "get bond1 ifindex")) 242 .sll_ifindex = ifindex, 347 int ifindex = if_nametoindex(ifaces[i]); local [all...] |
H A D | fib_lookup.c | 95 static int ifindex; variable 159 params->ifindex = ifindex; 259 ifindex = if_nametoindex("veth1"); 260 skb.ifindex = ifindex;
|
H A D | type_cast.c | 35 ASSERT_EQ(skel->bss->ifindex, 1, "xdp_md ifindex"); 36 ASSERT_EQ(skel->bss->ifindex, skel->bss->ingress_ifindex, "xdp_md ingress_ifindex");
|
/linux-master/net/can/ |
H A D | raw.c | 86 int ifindex; member in struct:raw_sock 198 addr->can_ifindex = skb->dev->ifindex; 320 ro->ifindex = 0; 367 ro->ifindex = 0; 431 ro->ifindex = 0; 454 int ifindex; local 466 if (ro->bound && addr->can_ifindex == ro->ifindex) 483 ifindex = dev->ifindex; 491 ifindex 907 int ifindex; local [all...] |
/linux-master/kernel/bpf/ |
H A D | devmap.c | 33 * check to see if the ifindex is the same as the net_device being removed. 42 * indexes these using a hashmap. This allows maps that use ifindex as key to be 115 * 4 bytes: ifindex 116 * 8 bytes: ifindex + prog fd 119 (valsize != offsetofend(struct bpf_devmap_val, ifindex) && 124 /* Lookup returns a pointer straight to dev->ifindex, so make sure the 577 static inline bool is_ifindex_excluded(int *excluded, int num_excluded, int ifindex) argument 580 if (ifindex == excluded[num_excluded]) 586 /* Get ifindex of each upper device. 'indexes' must be able to hold at 597 indexes[n++] = upper->ifindex; 1015 dev_map_redirect(struct bpf_map *map, u64 ifindex, u64 flags) argument 1022 dev_hash_map_redirect(struct bpf_map *map, u64 ifindex, u64 flags) argument [all...] |
/linux-master/samples/bpf/ |
H A D | xdp_fwd_kern.c | 102 fib_params.ifindex = ctx->ingress_ifindex; 123 * (Note: User can still have inserted an egress ifindex that 130 if (!bpf_map_lookup_elem(&xdp_tx_ports, &fib_params.ifindex)) 140 return bpf_redirect_map(&xdp_tx_ports, fib_params.ifindex, 0);
|
H A D | xdp_fwd_user.c | 42 /* Adding ifindex as a possible egress TX port */ 50 static int do_detach(int ifindex, const char *ifname, const char *app_name) argument 59 if (bpf_xdp_query_id(ifindex, xdp_flags, &curr_prog_id)) { 95 err = bpf_xdp_detach(ifindex, xdp_flags, &opts);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_neigh_fib.c | 93 struct bpf_fib_lookup fib_params = { .ifindex = skb->ingress_ifindex }; 124 return bpf_redirect_neigh(fib_params.ifindex, &nh_params, 137 return bpf_redirect(fib_params.ifindex, 0);
|
H A D | test_pkt_access.c | 81 return skb->ifindex * val * var; 137 if (test_pkt_access_subprog3(3, skb) != skb->len * 3 * skb->ifindex)
|
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_rpfilter.c | 59 fl6.flowi6_oif = dev->ifindex; 61 fl6.flowi6_oif = dev->ifindex; 76 l3mdev_master_ifindex_rcu(rt->rt6i_idev->dev) == dev->ifindex ||
|
H A D | nf_tproxy_ipv6.c | 101 in->ifindex, 0); 113 ntohs(dport), in->ifindex, 0); 122 in->ifindex);
|
/linux-master/net/ipv4/netfilter/ |
H A D | nf_tproxy_ipv4.c | 99 in->ifindex, 0); 111 daddr, dport, in->ifindex); 120 in->ifindex);
|
/linux-master/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | l2t.c | 68 static inline unsigned int arp_hash(u32 key, int ifindex, argument 71 return jhash_2words(key, ifindex, 0) & (d->nentries - 1); 241 int hash = arp_hash(e->addr, e->ifindex, d); 320 ifidx = neigh->dev->ifindex; 335 if (e->addr == addr && e->ifindex == ifidx && 351 e->ifindex = ifidx; 405 int ifidx = neigh->dev->ifindex; 410 if (e->addr == addr && e->ifindex == ifidx) {
|
/linux-master/include/net/ |
H A D | llc.h | 73 struct hlist_head *llc_sk_dev_hash(struct llc_sap *sap, int ifindex) argument 75 u32 bucket = hash_32(ifindex, LLC_SK_DEV_HASH_BITS);
|
/linux-master/drivers/net/team/ |
H A D | team_mode_activebackup.c | 73 ctx->data.u32_val = active_port->dev->ifindex; 83 if (port->dev->ifindex == ctx->data.u32_val) {
|
/linux-master/net/packet/ |
H A D | internal.h | 9 int ifindex; member in struct:packet_mclist 120 int ifindex; /* bound device */ member in struct:packet_sock
|
/linux-master/net/bridge/ |
H A D | br_mdb.c | 110 if (nla_put_nohdr(skb, sizeof(u32), &p->dev->ifindex) || 239 int ifindex; local 243 ifindex = p->key.port->dev->ifindex; 247 ifindex = mp->br->dev->ifindex; 252 e.ifindex = ifindex; 396 bpm->ifindex = dev->ifindex; 547 nlmsg_populate_rtr_fill(struct sk_buff *skb, struct net_device *dev, int ifindex, u16 vid, u32 pid, u32 seq, int type, unsigned int flags) argument 605 int ifindex; local [all...] |
H A D | br_cfm.c | 19 u32 ifindex) 25 if (mep->create.ifindex == ifindex) 45 u32 ifindex) 50 if (port->dev->ifindex == ifindex) 393 mep = br_mep_find_ifindex(br, port->dev->ifindex); 527 p = br_mep_get_port(br, create->ifindex); 542 mep = br_mep_find_ifindex(br, create->ifindex); 865 if (mep->create.ifindex 18 br_mep_find_ifindex(struct net_bridge *br, u32 ifindex) argument 44 br_mep_get_port(struct net_bridge *br, u32 ifindex) argument [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | main.h | 125 void print_dev_plain(__u32 ifindex, __u64 ns_dev, __u64 ns_inode); 126 void print_dev_json(__u32 ifindex, __u64 ns_dev, __u64 ns_inode); 206 ifindex_to_arch(__u32 ifindex, __u64 ns_dev, __u64 ns_ino, const char **opt); 240 const char *devname, int ifindex);
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.h | 63 int ifindex; member in struct:ice_esw_br
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | redirect_ingress.c | 63 err = mlx5e_set_fwd_to_int_port_actions(priv, attr, out_dev->ifindex,
|
/linux-master/include/linux/ |
H A D | netfilter_bridge.h | 55 return nf_bridge->physoutdev ? nf_bridge->physoutdev->ifindex : 0;
|