Home
last modified time | relevance | path

Searched full:router (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/Linux-v6.1/arch/x86/pci/
Dirq.c53 int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq);
54 int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq,
56 int (*lvl)(struct pci_dev *router, struct pci_dev *dev, int pirq,
62 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
117 * have no information as to the router device to use, but we can handle
349 static int pirq_finali_get(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_get() argument
368 static int pirq_finali_set(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_set() argument
390 static int pirq_finali_lvl(struct pci_dev *router, struct pci_dev *dev, in pirq_finali_lvl() argument
412 static unsigned int read_config_nybble(struct pci_dev *router, unsigned offset, unsigned nr) in read_config_nybble() argument
417 pci_read_config_byte(router, reg, &x); in read_config_nybble()
[all …]
/Linux-v6.1/tools/testing/selftests/net/
Dtraceroute.sh165 for ns in host-1 host-2 router-1 router-2
181 create_ns router-1
182 create_ns router-2
185 connect_ns router-2 eth3 - 2000:103::2/64 host-2 eth3 - 2000:103::4/64
189 connect_ns router-1 eth2 - 2000:102::1/64 router-2 eth2 - 2000:102::2/64
190 ip netns exec router-1 ip route add default via 2000:102::2
192 # Setup N1. host-1 and router-2 connect to a bridge in router-1.
193 ip netns exec router-1 ip link add name ${brdev} type bridge
194 ip netns exec router-1 ip link set ${brdev} up
195 ip netns exec router-1 ip addr add 2000:101::1/64 dev ${brdev}
[all …]
Dunicast_extensions.sh91 # Caller must set up foo-ns, bar-ns, and router-ns
93 # (foo in foo-ns, foo1 and bar1 in router-ns, and
102 ip -n router-ns address add $2/$5 dev foo1 || return 1
103 ip -n router-ns link set foo1 up || return 1
104 ip -n router-ns address add $3/$5 dev bar1 || return 1
105 ip -n router-ns link set bar1 up || return 1
107 echo 1 | ip netns exec router-ns tee /proc/sys/net/ipv4/ip_forward
152 ip netns add router-ns
153 ip link add foo netns foo-ns type veth peer name foo1 netns router-ns
154 ip link add bar netns bar-ns type veth peer name bar1 netns router-ns
[all …]
Dndisc_unsolicited_na_test.sh21 ROUTER_NS="ns-router"
24 ROUTER_INTF="veth-router"
78 # On end of the tunnel is a router and the other end is a host.
84 # Enable IPv6 on both router and host, and configure static addresses.
85 # The router here is the DUT
86 # Setup router configuration as specified by the arguments.
87 # forwarding=0 case is to check that a non-router
Darp_ndisc_untracked_subnets.sh4 # 2 namespaces: one host and one router. Use arping from the host to send a
5 # garp to the router. Router accepts or ignores based on its arp_accept
10 ROUTER_NS="ns-router"
11 ROUTER_NS_V6="ns-router-v6"
12 ROUTER_INTF="veth-router"
44 # namespaces. veth0 is veth-router, veth1 is veth-host.
79 # namespaces. veth0 is veth-router, veth1 is veth-host.
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_router_hw.c61 /* TODO: move to router.h as macros */
71 err = rhashtable_init(&sw->router->nh_neigh_ht, in prestera_router_hw_init()
76 err = rhashtable_init(&sw->router->nexthop_group_ht, in prestera_router_hw_init()
81 err = rhashtable_init(&sw->router->fib_ht, in prestera_router_hw_init()
86 INIT_LIST_HEAD(&sw->router->vr_list); in prestera_router_hw_init()
87 INIT_LIST_HEAD(&sw->router->rif_entry_list); in prestera_router_hw_init()
92 rhashtable_destroy(&sw->router->nexthop_group_ht); in prestera_router_hw_init()
94 rhashtable_destroy(&sw->router->nh_neigh_ht); in prestera_router_hw_init()
101 rhashtable_free_and_destroy(&sw->router->fib_ht, in prestera_router_hw_fini()
103 WARN_ON(!list_empty(&sw->router->vr_list)); in prestera_router_hw_fini()
[all …]
Dprestera_router.c458 rhashtable_lookup_fast(&sw->router->kern_neigh_cache_ht, key, in prestera_kern_neigh_cache_find()
474 rhashtable_remove_fast(&sw->router->kern_neigh_cache_ht, in __prestera_kern_neigh_cache_destroy()
496 err = rhashtable_insert_fast(&sw->router->kern_neigh_cache_ht, in __prestera_kern_neigh_cache_create()
544 rhashtable_lookup_fast(&sw->router->kern_fib_cache_ht, key, in prestera_kern_fib_cache_find()
571 rhashtable_remove_fast(&sw->router->kern_fib_cache_ht, in prestera_kern_fib_cache_destroy()
634 err = rhashtable_insert_fast(&sw->router->kern_fib_cache_ht, in prestera_kern_fib_cache_create()
1081 rhashtable_walk_enter(&sw->router->kern_neigh_cache_ht, &iter); in prestera_k_arb_hw_evt()
1131 rhashtable_walk_enter(&sw->router->kern_neigh_cache_ht, &iter); in __prestera_k_arb_fib_evt2nc()
1259 rhashtable_free_and_destroy(&sw->router->kern_fib_cache_ht, in prestera_k_arb_abort()
1262 rhashtable_free_and_destroy(&sw->router->kern_neigh_cache_ht, in prestera_k_arb_abort()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c490 u16 id; /* virtual router ID */
510 lpm_tree = mlxsw_sp->router->lpm.proto_trees[proto]; in mlxsw_sp_fib_create()
550 for (i = 0; i < mlxsw_sp->router->lpm.tree_count; i++) { in mlxsw_sp_lpm_tree_find_unused()
551 lpm_tree = &mlxsw_sp->router->lpm.trees[i]; in mlxsw_sp_lpm_tree_find_unused()
650 for (i = 0; i < mlxsw_sp->router->lpm.tree_count; i++) { in mlxsw_sp_lpm_tree_get()
651 lpm_tree = &mlxsw_sp->router->lpm.trees[i]; in mlxsw_sp_lpm_tree_get()
688 mlxsw_sp->router->lpm.tree_count = max_trees - MLXSW_SP_LPM_TREE_MIN; in mlxsw_sp_lpm_init()
689 mlxsw_sp->router->lpm.trees = kcalloc(mlxsw_sp->router->lpm.tree_count, in mlxsw_sp_lpm_init()
692 if (!mlxsw_sp->router->lpm.trees) in mlxsw_sp_lpm_init()
695 for (i = 0; i < mlxsw_sp->router->lpm.tree_count; i++) { in mlxsw_sp_lpm_init()
[all …]
Dspectrum_dpipe.c214 mutex_lock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_erif_entries_dump()
245 mutex_unlock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_erif_entries_dump()
252 mutex_unlock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_erif_entries_dump()
262 mutex_lock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_erif_counters_update()
275 mutex_unlock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_erif_counters_update()
550 mutex_lock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_host_entries_get()
606 mutex_unlock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_host_entries_get()
611 mutex_unlock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_host_entries_get()
666 mutex_lock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_host_counters_update()
688 mutex_unlock(&mlxsw_sp->router->lock); in mlxsw_sp_dpipe_table_host_counters_update()
[all …]
Dspectrum_router.h54 struct mutex lock; /* Protects shared router resources */
134 struct mlxsw_sp_nexthop *mlxsw_sp_nexthop_next(struct mlxsw_sp_router *router,
142 #define mlxsw_sp_nexthop_for_each(nh, router) \ argument
143 for (nh = mlxsw_sp_nexthop_next(router, NULL); nh; \
144 nh = mlxsw_sp_nexthop_next(router, nh))
/Linux-v6.1/net/qrtr/
DKconfig2 # Qualcomm IPC Router configuration
6 tristate "Qualcomm IPC Router support"
8 Say Y if you intend to use Qualcomm IPC router protocol. The
18 tristate "SMD IPC Router channels"
22 most common transport for IPC Router.
25 tristate "TUN device for Qualcomm IPC Router"
32 tristate "MHI IPC Router channels"
/Linux-v6.1/tools/testing/selftests/netfilter/
Dipip-conntrack-mtu.sh12 # |Router A|-------|Wanrouter|-------|Router B|
22 # Router A and Router B use IPIP tunnel interfaces to tunnel traffic
83 # Detailed setup for Router A
91 # 10.4.4.1 via 10.2.2.254 (Router B via Wanrouter)
113 # Detailed setup for Router B
121 # 10.2.2.1 via 10.4.4.254 (Router A via Wanrouter)
185 # Router A has learned PMTU (1400) to Router B from Wanrouter.
187 # from Router A.
197 # UDP packet is sent as two fragments (1380 + 20). Router A forwards the
201 #When sending the large UDP packet again, Router A now reassembles the
[all …]
/Linux-v6.1/arch/mips/sgi-ip27/
Dip27-memory.c60 klrou_t *router; in router_recurse() local
81 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in router_recurse()
82 if (router == router_b) { in router_recurse()
87 router_recurse(router, router_b, depth + 1); in router_recurse()
99 klrou_t *router, *router_a = NULL, *router_b = NULL; in compute_node_distance() local
116 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in compute_node_distance()
117 router->rou_rflag = 0; in compute_node_distance()
120 if (router->rou_port[port].port_nasid == INVALID_NASID) in compute_node_distance()
124 router->rou_port[port].port_nasid, in compute_node_distance()
125 router->rou_port[port].port_offset); in compute_node_distance()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_i2c.c338 /* ddc router switching */
344 if (!amdgpu_connector->router.ddc_valid) in amdgpu_i2c_router_select_ddc_port()
351 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port()
353 val &= ~amdgpu_connector->router.ddc_mux_control_pin; in amdgpu_i2c_router_select_ddc_port()
355 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port()
358 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port()
360 val &= ~amdgpu_connector->router.ddc_mux_control_pin; in amdgpu_i2c_router_select_ddc_port()
361 val |= amdgpu_connector->router.ddc_mux_state; in amdgpu_i2c_router_select_ddc_port()
363 amdgpu_connector->router.i2c_addr, in amdgpu_i2c_router_select_ddc_port()
367 /* clock/data router switching */
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/dma/
Ddma-router.yaml4 $id: http://devicetree.org/schemas/dma/dma-router.yaml#
7 title: DMA Router Generic Binding
23 pattern: "^dma-router(@.*)?$"
30 Array of phandles to the DMA controllers the router can direct
35 Number of incoming request lines the router can handle.
45 sdma_xbar: dma-router@4a002b78 {
Dst,stm32-dmamux.yaml7 title: STMicroelectronics STM32 DMA MUX (DMA request router) bindings
13 - $ref: "dma-router.yaml#"
43 dma-router@40020800 {
/Linux-v6.1/drivers/thunderbolt/
Dusb4.c118 * If the connection manager implementation provides USB4 router in __usb4_switch_op()
133 * router operation instead. in __usb4_switch_op()
212 * @sw: USB4 router to setup
260 * Only enable PCIe tunneling if the parent router supports it in usb4_switch_setup()
289 * usb4_switch_read_uid() - Read UID from USB4 router
290 * @sw: USB4 router
293 * Reads 64-bit UID from USB4 router config space.
322 * usb4_switch_drom_read() - Read arbitrary bytes from USB4 router DROM
323 * @sw: USB4 router
328 * Uses USB4 router operations to read router DROM. For devices this
[all …]
Dtmu.c409 * initiated by upstream router. In case of bi-directional in tb_switch_tmu_disable()
410 * time sync, TMU handshake is initiated by downstream router. in tb_switch_tmu_disable()
411 * We change downstream router's rate to off for both uni/bidir in tb_switch_tmu_disable()
413 * We avoid changing upstream router's mode since it might in tb_switch_tmu_disable()
414 * have another downstream router plugged, that is set to in tb_switch_tmu_disable()
643 * tb_switch_tmu_enable() - Enable TMU on a router
644 * @sw: Router whose TMU to enable
646 * Enables TMU of a router to be in uni-directional Normal/HiFi
714 * Host router port configurations are written as in tb_switch_tmu_enable()
717 * Here only the host router' rate configuration is written. in tb_switch_tmu_enable()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/arm/freescale/
Dfsl,vf610-mscm-ir.txt1 Freescale Vybrid Miscellaneous System Control - Interrupt Router
4 block of registers which control the interrupt router. The interrupt router
12 - reg: the register range of the MSCM Interrupt Router
18 assignment of the interrupt router is required.
/Linux-v6.1/net/batman-adv/
Drouting.c45 * _batadv_update_route() - set the router for this originator
49 * @neigh_node: neighbor which should be the next router
66 /* curr_router used earlier may not be the current orig_ifinfo->router in _batadv_update_route()
78 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node, in _batadv_update_route()
108 * batadv_update_route() - set the router for this originator
112 * @neigh_node: neighbor which should be the next router
119 struct batadv_neigh_node *router = NULL; in batadv_update_route() local
124 router = batadv_orig_router_get(orig_node, recv_if); in batadv_update_route()
126 if (router != neigh_node) in batadv_update_route()
130 batadv_neigh_node_put(router); in batadv_update_route()
[all …]
/Linux-v6.1/drivers/irqchip/
Dirq-ti-sci-intr.c3 * Texas Instruments' K3 Interrupt Router irqchip driver
22 * Interrupt Router IRQ domain.
27 * @type: Specifies the trigger type supported by this Interrupt Router
75 * @intr: IRQ domain corresponding to Interrupt Router
128 * @domain: Pointer to the interrupt router IRQ domain
161 /* Parent is Interrupt Router */ in ti_sci_intr_alloc_parent_irq()
186 * ti_sci_intr_irq_domain_alloc() - Allocate Interrupt router IRQs
187 * @domain: Point to the interrupt router IRQ domain
283 dev_info(dev, "Interrupt Router %d domain created\n", intr->ti_sci_id); in ti_sci_intr_irq_domain_probe()
304 MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol");
/Linux-v6.1/Documentation/devicetree/bindings/interrupt-controller/
Dti,sci-intr.yaml7 title: Texas Instruments K3 Interrupt Router
16 The Interrupt Router (INTR) module provides a mechanism to mux M
18 to be driven per N output. An Interrupt Router can either handle edge
21 Interrupt Router
40 controller will keep track of the used and unused registers within the Router.
69 The 1st cell should contain interrupt router input hw number.
/Linux-v6.1/net/ipv6/
DKconfig26 bool "IPv6: Router Preference (RFC 4191) support"
28 Router Preference is an optional extension to the Router
30 to pick an appropriate router, especially when the hosts
225 This driver is useful if the other endpoint is a Cisco router: Cisco
274 Normally, a multicast router runs a userspace daemon and decides
276 destination addresses. If you say Y here, the multicast router
/Linux-v6.1/arch/arm/boot/dts/
Dbcm4709-buffalo-wxr-1900dhp.dts47 router-amber {
48 label = "bcm53xx:amber:router";
52 router-white {
53 label = "bcm53xx:white:router";
/Linux-v6.1/drivers/gpu/drm/radeon/
Dradeon_i2c.c58 if (radeon_connector->router.ddc_valid) in radeon_ddc_probe()
1096 /* ddc router switching */
1101 if (!radeon_connector->router.ddc_valid) in radeon_router_select_ddc_port()
1108 radeon_connector->router.i2c_addr, in radeon_router_select_ddc_port()
1110 val &= ~radeon_connector->router.ddc_mux_control_pin; in radeon_router_select_ddc_port()
1112 radeon_connector->router.i2c_addr, in radeon_router_select_ddc_port()
1115 radeon_connector->router.i2c_addr, in radeon_router_select_ddc_port()
1117 val &= ~radeon_connector->router.ddc_mux_control_pin; in radeon_router_select_ddc_port()
1118 val |= radeon_connector->router.ddc_mux_state; in radeon_router_select_ddc_port()
1120 radeon_connector->router.i2c_addr, in radeon_router_select_ddc_port()
[all …]

12345678910>>...13