Home
last modified time | relevance | path

Searched refs:l3mdev (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.6/net/ipv4/
Dinet_hashtables.c69 int l3mdev) in inet_bind_bucket_create() argument
75 tb->l3mdev = l3mdev; in inet_bind_bucket_create()
97 unsigned short port, int l3mdev) in inet_bind_bucket_match() argument
100 tb->l3mdev == l3mdev; in inet_bind_bucket_match()
106 unsigned short port, int l3mdev, in inet_bind2_bucket_init() argument
110 tb->l3mdev = l3mdev; in inet_bind2_bucket_init()
128 int l3mdev, in inet_bind2_bucket_create() argument
134 inet_bind2_bucket_init(tb, net, head, port, l3mdev, sk); in inet_bind2_bucket_create()
231 int bhash, l3mdev; in __inet_inherit_port() local
247 l3mdev = inet_sk_bound_l3mdev(sk); in __inet_inherit_port()
[all …]
Dinet_connection_sock.c284 static bool inet_bhash2_addr_any_conflict(const struct sock *sk, int port, int l3mdev, in inet_bhash2_addr_any_conflict() argument
305 if (inet_bind2_bucket_match_addr_any(tb2, net, port, l3mdev, sk)) in inet_bhash2_addr_any_conflict()
328 int i, low, high, attempt_half, port, l3mdev; in inet_csk_find_open_port() local
336 l3mdev = inet_sk_bound_l3mdev(sk); in inet_csk_find_open_port()
373 if (inet_bhash2_addr_any_conflict(sk, port, l3mdev, relax, false)) in inet_csk_find_open_port()
379 tb2 = inet_bind2_bucket_find(head2, net, port, l3mdev, sk); in inet_csk_find_open_port()
381 if (inet_bind_bucket_match(tb, net, port, l3mdev)) { in inet_csk_find_open_port()
513 int ret = -EADDRINUSE, port = snum, l3mdev; in inet_csk_get_port() local
520 l3mdev = inet_sk_bound_l3mdev(sk); in inet_csk_get_port()
537 if (inet_bind_bucket_match(tb, net, port, l3mdev)) in inet_csk_get_port()
[all …]
Dfib_rules.c61 rule->l3mdev) in fib4_rule_default()
246 if (rule->table == RT_TABLE_UNSPEC && !rule->l3mdev) { in fib4_rule_configure()
/Linux-v6.6/include/net/
Dinet_hashtables.h79 int l3mdev; member
96 int l3mdev; member
233 const unsigned short snum, int l3mdev);
239 int l3mdev);
244 unsigned short port, int l3mdev,
253 unsigned short port, int l3mdev,
258 int l3mdev, const struct sock *sk);
Dfib_rules.h29 u8 l3mdev; member
120 return rule->l3mdev ? arg->table : rule->table; in fib_rule_get_table()
/Linux-v6.6/net/core/
Dfib_rules.c277 if (rule->l3mdev && !l3mdev_fib_rule_match(rule->fr_net, fl, arg)) in fib_rule_match()
463 if (rule->l3mdev && r->l3mdev != rule->l3mdev) in rule_find()
499 nlrule->l3mdev = nla_get_u8(nla); in fib_nl2rule_l3mdev()
500 if (nlrule->l3mdev != 1) { in fib_nl2rule_l3mdev()
632 if (nlrule->l3mdev && nlrule->table) { in fib_nl2rule()
725 if (r->l3mdev != rule->l3mdev) in rule_exists()
1062 (rule->l3mdev && in fib_nl_fill_rule()
1063 nla_put_u8(skb, FRA_L3MDEV, rule->l3mdev)) || in fib_nl_fill_rule()
Dlwt_bpf.c175 struct net_device *l3mdev = l3mdev_master_dev_rcu(skb_dst(skb)->dev); in bpf_lwt_xmit_reroute() local
176 int oif = l3mdev ? l3mdev->ifindex : 0; in bpf_lwt_xmit_reroute()
/Linux-v6.6/net/l3mdev/
DMakefile6 obj-y += l3mdev.o
/Linux-v6.6/Documentation/networking/
Dvrf.rst72 2. An l3mdev FIB rule directs lookups to the table associated with the device.
73 A single l3mdev rule is sufficient for all VRFs. The VRF device adds the
74 l3mdev rule for IPv4 and IPv6 when the first device is created with a
122 arriving on interfaces enslaved to an l3mdev and processes may bind to
123 the same port if they bind to an l3mdev.
174 As of v4.8 the kernel supports the l3mdev FIB rule where a single rule
175 covers all VRFs. The l3mdev rule is created for IPv4 and IPv6 on first
/Linux-v6.6/net/
DMakefile76 obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev/
DKconfig267 source "net/l3mdev/Kconfig"
/Linux-v6.6/net/ipv6/
Dfib6_rules.c44 rule->l3mdev) in fib6_rule_default()
360 if (rule->action == FR_ACT_TO_TBL && !rule->l3mdev) { in fib6_rule_configure()
Daddrconf.c1927 struct net_device *l3mdev, *ndev; in __ipv6_chk_addr_and_flags() local
1933 l3mdev = l3mdev_master_dev_rcu(dev); in __ipv6_chk_addr_and_flags()
1940 if (l3mdev_master_dev_rcu(ndev) != l3mdev) in __ipv6_chk_addr_and_flags()
Dip6mr.c287 rule->table == RT6_TABLE_DFLT && !rule->l3mdev; in ip6mr_rule_default()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c7829 if (!fib4_rule_default(rule) && !rule->l3mdev) in mlxsw_sp_router_fib_rule_event()
7833 if (!fib6_rule_default(rule) && !rule->l3mdev) in mlxsw_sp_router_fib_rule_event()
7837 if (!ipmr_rule_default(rule) && !rule->l3mdev) in mlxsw_sp_router_fib_rule_event()
7841 if (!ip6mr_rule_default(rule) && !rule->l3mdev) in mlxsw_sp_router_fib_rule_event()
/Linux-v6.6/
DMAINTAINERS11836 F: include/net/l3mdev.h
11837 F: net/l3mdev