Home
last modified time | relevance | path

Searched +full:local +full:- +full:mac +full:- +full:address (Results 1 – 25 of 796) sorted by relevance

12345678910>>...32

/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/
H A Dmac-check8 # http://www.apache.org/licenses/LICENSE-2.0
17 SOFS_MACDIR=${SOFS_MNT}/factory-settings/network/mac
20 local iface="$1"
21 cat /sys/class/net/"$iface"/address 2>/dev/null
25 local iface="$1"
26 local mac="$2"
27 ip link show dev "$iface" | grep -q "${iface}:.*\<UP\>" 2>/dev/null
28 local up=$?
29 [[ $up -eq 0 ]] && ip link set dev "$iface" down
30 ip link set dev "$iface" address "$mac"
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Drif_mac_profiles_occ.sh2 # SPDX-License-Identifier: GPL-2.0
18 # Disable IPv6 on the two interfaces to avoid IPv6 link-local addresses
37 # Reload in order to clean all the RIFs and RIF MAC profiles created
43 local count=$1; shift
44 local batch_file="$(mktemp)"
50 cat >> $batch_file <<-EOF
52 address 00:$m:$m:$m:$m:$m type vlan id $vlan
53 address add 192.0.$m.1/24 dev $h1.$vlan
57 ip -b $batch_file &> /dev/null
58 rm -f $batch_file
[all …]
H A Drif_mac_profiles.sh2 # SPDX-License-Identifier: GPL-2.0
53 ip address add 192.0.2.2/24 dev $rp1
54 ip address add 198.51.100.2/24 dev $rp2
59 ip address del 198.51.100.2/24 dev $rp2
60 ip address del 192.0.2.2/24 dev $rp1
102 local test_name=$@; shift
103 local smac=$(mac_get $rp2)
111 # match on source MAC because it is not set in eACL after routing
117 # source MAC
122 $MZ $h1 -a own -b $(mac_get $rp1) -t udp "sp=12345,dp=54321" \
[all …]
H A Drif_mac_profile_scale.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Test for RIF MAC profiles resource. The test adds VLAN netdevices according to
5 # the maximum number of RIF MAC profiles, sets each of them with a random
6 # MAC address, and checks that eventually the number of occupied RIF MAC
7 # profiles equals the maximum number of RIF MAC profiles.
14 local count=$1; shift
15 local should_fail=$1; shift
16 local batch_file="$(mktemp)"
22 cat >> $batch_file <<-EOF
24 address 00:$m:$m:$m:$m:$m type vlan id $vlan
[all …]
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsid_lib.sh8 # http://www.apache.org/licenses/LICENSE-2.0
21 kill -s TERM "${!CHILD_PIDS[@]}"
28 declare -g -A CHILD_PIDS=()
29 declare -g GOT_TERM=0
30 declare -g SUPPRESS_TERM=0
42 SUPPRESS_TERM=$((SUPPRESS_TERM - 1))
64 if [ "$(type -t "$1")" = "function" ]; then
76 local child_pid="$!"
84 local wait_on=("${!CHILD_PIDS[@]}")
88 local rc=0
[all …]
/openbmc/linux/net/core/
H A Dof_net.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/nvmem-consumer.h>
18 * of_get_phy_mode - Get phy mode for given device_node
22 * The function gets phy interface string from property 'phy-mode' or
23 * 'phy-connection-type'. The index in phy_modes table is set in
25 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV.
34 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode()
36 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode()
46 return -ENODEV; in of_get_phy_mode()
54 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr()
[all …]
/openbmc/linux/arch/mips/boot/dts/cavium-octeon/
H A Docteon_3xxx.dts1 // SPDX-License-Identifier: GPL-2.0
6 * use. Because of this, it contains a super-set of the available
15 phy0: ethernet-phy@0 {
17 marvell,reg-init =
21 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */
22 /* irq, blink-activity, blink-link */
23 <3 0x10 0 0x0242>; /* Reg 3,16 <- 0x0242 */
27 phy1: ethernet-phy@1 {
29 marvell,reg-init =
33 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */
[all …]
H A Docteon_68xx.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
7 * use. Because of this, it contains a super-set of the available
11 compatible = "cavium,octeon-6880";
12 #address-cells = <2>;
13 #size-cells = <2>;
14 interrupt-parent = <&ciu2>;
17 compatible = "simple-bus";
18 #address-cells = <2>;
19 #size-cells = <2>;
[all …]
/openbmc/phosphor-misc/usb-ctrl/
H A Dusb-ctrl2 set -e
6 set -x
7 local storage="$1"
8 local sz_mb="$2"
11 # this shows up as 23FC-F676 in /dev/disk/by-uuid
12 local diskid=0x23FCF676
13 mkdosfs -n 'OPENBMC-FW' -i $diskid -I "$storage" >/dev/null 2>&1
18 set -x
19 local storage="$1"
20 local stormnt="$2"
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A Dfilter.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2005-2013 Solarflare Communications Inc.
15 * enum ef4_filter_match_flags - Flags for hardware filter match type
16 * @EF4_FILTER_MATCH_REM_HOST: Match by remote IP host address
17 * @EF4_FILTER_MATCH_LOC_HOST: Match by local IP host address
18 * @EF4_FILTER_MATCH_REM_MAC: Match by remote MAC address
20 * @EF4_FILTER_MATCH_LOC_MAC: Match by local MAC address
21 * @EF4_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port
22 * @EF4_FILTER_MATCH_ETHER_TYPE: Match by Ether-type
26 * @EF4_FILTER_MATCH_LOC_MAC_IG: Match by local MAC address I/G bit.
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dfilter.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2005-2013 Solarflare Communications Inc.
15 * enum efx_filter_match_flags - Flags for hardware filter match type
16 * @EFX_FILTER_MATCH_REM_HOST: Match by remote IP host address
17 * @EFX_FILTER_MATCH_LOC_HOST: Match by local IP host address
18 * @EFX_FILTER_MATCH_REM_MAC: Match by remote MAC address
20 * @EFX_FILTER_MATCH_LOC_MAC: Match by local MAC address
21 * @EFX_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port
22 * @EFX_FILTER_MATCH_ETHER_TYPE: Match by Ether-type
26 * @EFX_FILTER_MATCH_LOC_MAC_IG: Match by local MAC address I/G bit.
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/
H A Dlocal_termination.sh2 # SPDX-License-Identifier: GPL-2.0
44 # Disable promisc to ensure we don't receive unknown MAC DA packets
45 export TCPDUMP_EXTRA_FLAGS="-pl"
52 local if_name=$1
53 local smac=$2
54 local dmac=$3
56 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
61 local if_name=$1
62 local dmac=$2
71 local if_name=$1
[all …]
H A Dlib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dlocal_termination.sh2 # SPDX-License-Identifier: GPL-2.0
44 # Disable promisc to ensure we don't receive unknown MAC DA packets
45 export TCPDUMP_EXTRA_FLAGS="-pl"
52 local if_name=$1
53 local smac=$2
54 local dmac=$3
56 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
61 local if_name=$1
62 local dmac=$2
71 local if_name=$1
[all …]
H A Dvxlan_bridge_1d.sh2 # SPDX-License-Identifier: GPL-2.0
4 # +--------------------+ +----------------------+
8 # +----|---------------+ +--|-------------------+
10 # +----|--------------------------------------------------|-------------------+
12 # | +--|--------------------------------------------------|-----------------+ |
16 # | | local 192.0.2.17 | |
19 # | +-----------------------------------------------------------------------+ |
26 # +----|----------------------------------------------------------------------+
28 # +----|--------------------------------------------------------+
37 # +----|---------------------------------------|----------------+
[all …]
H A Dvxlan_bridge_1q.sh2 # SPDX-License-Identifier: GPL-2.0
4 # +-----------------------+ +------------------------+
13 # +----|------------------+ +----|-------------------+
15 # +----|--------------------------------------------------|-------------------+
17 # | +--|--------------------------------------------------|-----------------+ |
23 # | | local 192.0.2.17 local 192.0.2.17 | |
27 # | +-----------------------------------------------------------------------+ |
34 # +----|----------------------------------------------------------------------+
36 # +----|--------------------------------------------------------+
45 # +----|---------------------------------------|----------------+
[all …]
H A Dlib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/openbmc/meta-yadro/meta-vegman/recipes-yadro/fru/vegman-fru-handler/
H A Dbaseboard-fru-handler.sh1 #!/bin/bash -eu
3 # SPDX-License-Identifier: Apache-2.0
4 # Copyright 2020-2021 YADRO
15 local iface="$1"
16 cat /sys/class/net/"${iface}"/address 2>/dev/null ||:
20 local iface="$1"
21 local mac="$2"
22 local up=""
23 if ip link show dev "${iface}" | grep -q "${iface}:.*\<UP\>" 2>/dev/null; then
30 ip link set dev "${iface}" address "${mac}" ||:
[all …]
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dcavium-pip.txt10 - compatible: "cavium,octeon-3860-pip"
14 - reg: The base address of the PIP's register bank.
16 - #address-cells: Must be <1>.
18 - #size-cells: Must be <0>.
21 - compatible: "cavium,octeon-3860-pip-interface"
25 - reg: The interface number.
27 - #address-cells: Must be <1>.
29 - #size-cells: Must be <0>.
32 - compatible: "cavium,octeon-3860-pip-port"
36 - reg: The port number within the interface group.
[all …]
H A Dengleder,tsnep.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TSN endpoint Ethernet MAC
10 - Gerhard Engleder <gerhard@engleder-embedded.com>
13 - $ref: ethernet-controller.yaml#
26 interrupt-names:
29 - const: mac
30 - const: txrx-1
31 - const: txrx-2
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dfilter.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2005-2013 Solarflare Communications Inc.
16 * enum efx_filter_match_flags - Flags for hardware filter match type
17 * @EFX_FILTER_MATCH_REM_HOST: Match by remote IP host address
18 * @EFX_FILTER_MATCH_LOC_HOST: Match by local IP host address
19 * @EFX_FILTER_MATCH_REM_MAC: Match by remote MAC address
21 * @EFX_FILTER_MATCH_LOC_MAC: Match by local MAC address
22 * @EFX_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port
23 * @EFX_FILTER_MATCH_ETHER_TYPE: Match by Ether-type
27 * @EFX_FILTER_MATCH_LOC_MAC_IG: Match by local MAC address I/G bit.
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/team/
H A Dnet_forwarding_lib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/bonding/
H A Dnet_forwarding_lib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/phosphor-networkd/
H A Dmeson_options.txt3 option('uboot-env', type: 'boolean',
4 description: 'Update u-boot env for MAC changes')
5 option('default-link-local-autoconf', type: 'boolean',
6 description: 'Enable link local autoconfiguration by default')
7 option('default-ipv6-accept-ra', type: 'boolean',
9 option('sync-mac', type: 'boolean',
10 description: 'Sync mac address with phosphor-inventory-manager')
11 option('hyp-nw-config', type : 'boolean',
12 description : 'ibm-oem: Enable the hypervisor network manager')
13 option('persist-mac', type: 'boolean',
[all …]
/openbmc/u-boot/doc/device-tree-bindings/net/
H A Daltera_tse.txt1 * Altera Triple-Speed Ethernet MAC driver (TSE)
4 - compatible: Should be "altr,tse-1.0" for legacy SGDMA based TSE, and should
5 be "altr,tse-msgdma-1.0" for the preferred MSGDMA based TSE.
6 - reg: Address and length of the register set for the device. It contains
7 the information of registers in the same order as described by reg-names
8 - reg-names: Should contain the reg names
9 "control_port": MAC configuration space region
16 - interrupts: Should contain the TSE interrupts and it's mode.
17 - interrupt-names: Should contain the interrupt names
20 - rx-fifo-depth: MAC receive FIFO buffer depth in bytes
[all …]

12345678910>>...32