Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux network] Make bridge interface as Ethernet interface #33236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

celestecote21
Copy link

Hello maintainers,

This PR permit the use of Linux device with only a bridge interface.

Using the same method by reading the name of the interface, we return Ethernet as interface type when ifname start by "br".

Fell free to propose any other changes.

Regards,
Céleste

Some devices neither have WAN nor eth interface but use a bridge
interface.

Consider bridge interface as Ethernet, so these devices can use bridge
interface.
@CLAassistant
Copy link

CLAassistant commented Apr 30, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

github-actions bot commented Apr 30, 2024

PR #33236: Size comparison from ffaeaa1 to f7187be

Increases (14 builds for linux)
platform target config section ffaeaa1 f7187be change % change
linux air-purifier-app debug (read only) 2656821 2656853 32 0.0
.text 2293077 2293109 32 0.0
all-clusters-app debug (read only) 5970057 5970105 48 0.0
.text 5183795 5183843 48 0.0
all-clusters-minimal-app debug (read only) 5254049 5254097 48 0.0
.text 4727219 4727267 48 0.0
bridge-app debug (read only) 4644649 4644681 32 0.0
.text 4191827 4191859 32 0.0
chip-tool debug (read only) 12112865 12112913 48 0.0
.text 10952691 10952739 48 0.0
chip-tool-ipv6only arm64 (read only) 11443780 11443828 48 0.0
.text 10205544 10205592 48 0.0
lighting-app debug+rpc+ui (read only) 5567897 5567945 48 0.0
.text 4964867 4964915 48 0.0
lock-app debug (read only) 4711905 4711953 48 0.0
.text 4242227 4242275 48 0.0
ota-provider-app debug (read only) 4319601 4319649 48 0.0
.text 3915539 3915587 48 0.0
ota-requestor-app debug (read only) 4450177 4450225 48 0.0
.text 4035523 4035571 48 0.0
shell debug (read only) 2941337 2941385 48 0.0
.text 2578194 2578242 48 0.0
thermostat-no-ble arm64 (read only) 4443916 4443980 64 0.0
.rodata 160436 160452 16 0.0
.text 3946360 3946408 48 0.0
tv-app debug (read only) 5788401 5788433 32 0.0
.text 5249059 5249091 32 0.0
tv-casting-app debug (read only) 9929393 9929441 48 0.0
.text 9077443 9077491 48 0.0
Decreases (4 builds for efr32, linux)
platform target config section ffaeaa1 f7187be change % change
efr32 lock-app BRD4338a (read/write) 961412 961404 -8 -0.0
.text 699568 699560 -8 -0.0
window-app BRD4187C (read/write) 1136904 1136896 -8 -0.0
.text 968948 968940 -8 -0.0
linux chip-tool-ipv6only arm64 (read/write) 588712 588664 -48 -0.0
thermostat-no-ble arm64 (read/write) 244072 244024 -48 -0.0
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
platform target config section ffaeaa1 f7187be change % change
bl602 lighting-app bl602 (read/write) 1444122 1444122 0 0.0
.bss 85720 85720 0 0.0
.data 9512 9512 0 0.0
.rodata 159220 159220 0 0.0
.text 1109010 1109010 0 0.0
bl602+mfd (read/write) 1458538 1458538 0 0.0
.bss 85888 85888 0 0.0
.data 9488 9488 0 0.0
.rodata 158180 158180 0 0.0
.text 1124328 1124328 0 0.0
bl602+rpc (read/write) 1491506 1491506 0 0.0
.bss 93760 93760 0 0.0
.data 9888 9888 0 0.0
.rodata 166788 166788 0 0.0
.text 1140400 1140400 0 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1209431 1209431 0 0.0
.bss 11185 11185 0 0.0
.data 3704 3704 0 0.0
.rodata 108816 108816 0 0.0
.text 978764 978764 0 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1220527 1220527 0 0.0
.bss 11361 11361 0 0.0
.data 3688 3688 0 0.0
.rodata 107756 107756 0 0.0
.text 990774 990774 0 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1301175 1301175 0 0.0
.bss 19669 19669 0 0.0
.data 4248 4248 0 0.0
.rodata 124188 124188 0 0.0
.text 1053728 1053728 0 0.0
bl706-eth (read/write) 1026209 1026209 0 0.0
.bss 23760 23760 0 0.0
.data 3256 3256 0 0.0
.rodata 101904 101904 0 0.0
.text 768982 768982 0 0.0
bl706-wifi (read/write) 1261378 1261378 0 0.0
.bss 10645 10645 0 0.0
.data 3704 3704 0 0.0
.rodata 122904 122904 0 0.0
.text 1001382 1001382 0 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1179028 1179028 0 0.0
.bss 16396 16396 0 0.0
.data 5072 5072 0 0.0
.rodata 102820 102820 0 0.0
.text 971874 971874 0 0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1190168 1190168 0 0.0
.bss 16572 16572 0 0.0
.data 5048 5048 0 0.0
.rodata 101760 101760 0 0.0
.text 983940 983940 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 784012 784012 0 0.0
(read/write) 176660 176660 0 0.0
.bss 98604 98604 0 0.0
.data 3588 3588 0 0.0
.rodata 83092 83092 0 0.0
.text 700656 700656 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 799812 799812 0 0.0
(read/write) 187148 187148 0 0.0
.bss 109092 109092 0 0.0
.data 3588 3588 0 0.0
.rodata 77084 77084 0 0.0
.text 722460 722460 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 788572 788572 0 0.0
(read/write) 181268 181268 0 0.0
.bss 103212 103212 0 0.0
.data 3588 3588 0 0.0
.rodata 103996 103996 0 0.0
.text 684312 684312 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 740972 740972 0 0.0
(read/write) 175636 175636 0 0.0
.bss 97344 97344 0 0.0
.data 3580 3580 0 0.0
.rodata 78756 78756 0 0.0
.text 661952 661952 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 726628 726628 0 0.0
(read/write) 175844 175844 0 0.0
.bss 97568 97568 0 0.0
.data 3572 3572 0 0.0
.rodata 74540 74540 0 0.0
.text 651824 651824 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 588918 588918 0 0.0
(read/write) 208372 208372 0 0.0
.bss 201596 201596 0 0.0
.data 1652 1652 0 0.0
.rodata 87654 87654 0 0.0
.text 499144 499144 0 0.0
lock CC3235SF_LAUNCHXL (read only) 634766 634766 0 0.0
(read/write) 208636 208636 0 0.0
.bss 202000 202000 0 0.0
.data 1516 1516 0 0.0
.rodata 108414 108414 0 0.0
.text 524228 524228 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 570719 570719 0 0.0
.app_xip_area 460629 460629 0 0.0
.bss 64908 64908 0 0.0
.data 760 760 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 552799 552799 0 0.0
.app_xip_area 438037 438037 0 0.0
.bss 69572 69572 0 0.0
.data 768 768 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 573471 573471 0 0.0
.app_xip_area 464877 464877 0 0.0
.bss 63452 63452 0 0.0
.data 720 720 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 565911 565911 0 0.0
.app_xip_area 454133 454133 0 0.0
.bss 66556 66556 0 0.0
.data 800 800 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4187C (read/write) 1069940 1069940 0 0.0
.bss 180008 180008 0 0.0
.data 3432 3432 0 0.0
.text 886480 886480 0 0.0
lock-app BRD4338a (read/write) 961412 961404 -8 -0.0
.bss 213032 213032 0 0.0
.data 29448 29448 0 0.0
.text 699568 699560 -8 -0.0
window-app BRD4187C (read/write) 1136904 1136896 -8 -0.0
.bss 164600 164600 0 0.0
.data 3336 3336 0 0.0
.text 968948 968940 -8 -0.0
esp32 all-clusters-app c3devkit (read only) 1214720 1214720 0 0.0
(read/write) 1751288 1751288 0 0.0
.dram0.bss 74568 74568 0 0.0
.dram0.data 13652 13652 0 0.0
.flash.rodata 253528 253528 0 0.0
.flash.text 1214720 1214720 0 0.0
.iram0.text 75570 75570 0 0.0
m5stack (read only) 1256495 1256495 0 0.0
(read/write) 537684 537684 0 0.0
.dram0.bss 81320 81320 0 0.0
.dram0.data 35196 35196 0 0.0
.flash.rodata 285248 285248 0 0.0
.flash.text 1250331 1250331 0 0.0
.iram0.text 125403 125403 0 0.0
linux air-purifier-app debug (read only) 2656821 2656853 32 0.0
(read/write) 130384 130384 0 0.0
.bss 47016 47016 0 0.0
.data 2272 2272 0 0.0
.data.rel.ro 75160 75160 0 0.0
.dynamic 608 608 0 0.0
.got 4520 4520 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 184464 184464 0 0.0
.text 2293077 2293109 32 0.0
all-clusters-app debug (read only) 5970057 5970105 48 0.0
(read/write) 481992 481992 0 0.0
.bss 135296 135296 0 0.0
.data 4560 4560 0 0.0
.data.rel.ro 334712 334712 0 0.0
.dynamic 624 624 0 0.0
.got 5328 5328 0 0.0
.init 27 27 0 0.0
.init_array 1440 1440 0 0.0
.rodata 350832 350832 0 0.0
.text 5183795 5183843 48 0.0
all-clusters-minimal-app debug (read only) 5254049 5254097 48 0.0
(read/write) 238008 238008 0 0.0
.bss 128160 128160 0 0.0
.data 4464 4464 0 0.0
.data.rel.ro 98296 98296 0 0.0
.dynamic 624 624 0 0.0
.got 5248 5248 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 290058 290058 0 0.0
.text 4727219 4727267 48 0.0
bridge-app debug (read only) 4644649 4644681 32 0.0
(read/write) 218888 218888 0 0.0
.bss 118688 118688 0 0.0
.data 6240 6240 0 0.0
.data.rel.ro 87248 87248 0 0.0
.dynamic 624 624 0 0.0
.got 5216 5216 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 230474 230474 0 0.0
.text 4191827 4191859 32 0.0
chip-tool debug (read only) 12112865 12112913 48 0.0
(read/write) 523456 523456 0 0.0
.bss 95032 95032 0 0.0
.data 5122 5122 0 0.0
.data.rel.ro 416064 416064 0 0.0
.dynamic 624 624 0 0.0
.got 5736 5736 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 451577 451577 0 0.0
.text 10952691 10952739 48 0.0
chip-tool-ipv6only arm64 (read only) 11443780 11443828 48 0.0
(read/write) 588712 588664 -48 -0.0
.bss 104008 104008 0 0.0
.data 4520 4520 0 0.0
.data.rel.ro 456016 456016 0 0.0
.dynamic 512 512 0 0.0
.got 17104 17104 0 0.0
.init 24 24 0 0.0
.init_array 280 280 0 0.0
.rodata 356340 356340 0 0.0
.text 10205544 10205592 48 0.0
lighting-app debug+rpc+ui (read only) 5567897 5567945 48 0.0
(read/write) 227656 227656 0 0.0
.bss 119632 119632 0 0.0
.data 4896 4896 0 0.0
.data.rel.ro 95616 95616 0 0.0
.dynamic 672 672 0 0.0
.got 5856 5856 0 0.0
.init 27 27 0 0.0
.init_array 976 976 0 0.0
.rodata 354292 354292 0 0.0
.text 4964867 4964915 48 0.0
lock-app debug (read only) 4711905 4711953 48 0.0
(read/write) 206112 206112 0 0.0
.bss 113960 113960 0 0.0
.data 4192 4192 0 0.0
.data.rel.ro 81256 81256 0 0.0
.dynamic 624 624 0 0.0
.got 5168 5168 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 256394 256394 0 0.0
.text 4242227 4242275 48 0.0
ota-provider-app debug (read only) 4319601 4319649 48 0.0
(read/write) 194616 194616 0 0.0
.bss 113760 113760 0 0.0
.data 4368 4368 0 0.0
.data.rel.ro 70544 70544 0 0.0
.dynamic 624 624 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 209290 209290 0 0.0
.text 3915539 3915587 48 0.0
ota-requestor-app debug (read only) 4450177 4450225 48 0.0
(read/write) 198984 198984 0 0.0
.bss 114656 114656 0 0.0
.data 4768 4768 0 0.0
.data.rel.ro 73648 73648 0 0.0
.dynamic 624 624 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 215338 215338 0 0.0
.text 4035523 4035571 48 0.0
shell debug (read only) 2941337 2941385 48 0.0
(read/write) 157424 157424 0 0.0
.bss 62800 62800 0 0.0
.data 1424 1424 0 0.0
.data.rel.ro 87400 87400 0 0.0
.dynamic 592 592 0 0.0
.got 4056 4056 0 0.0
.init 27 27 0 0.0
.init_array 1112 1112 0 0.0
.rodata 187744 187744 0 0.0
.text 2578194 2578242 48 0.0
thermostat-no-ble arm64 (read only) 4443916 4443980 64 0.0
(read/write) 244072 244024 -48 -0.0
.bss 122264 122264 0 0.0
.data 3408 3408 0 0.0
.data.rel.ro 104520 104520 0 0.0
.dynamic 512 512 0 0.0
.got 8720 8720 0 0.0
.init 24 24 0 0.0
.init_array 448 448 0 0.0
.rodata 160436 160452 16 0.0
.text 3946360 3946408 48 0.0
tv-app debug (read only) 5788401 5788433 32 0.0
(read/write) 353816 353816 0 0.0
.bss 244528 244528 0 0.0
.data 6560 6560 0 0.0
.data.rel.ro 95432 95432 0 0.0
.dynamic 624 624 0 0.0
.got 5464 5464 0 0.0
.init 27 27 0 0.0
.init_array 1184 1184 0 0.0
.rodata 295274 295274 0 0.0
.text 5249059 5249091 32 0.0
tv-casting-app debug (read only) 9929393 9929441 48 0.0
(read/write) 343616 343616 0 0.0
.bss 158744 158744 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 174960 174960 0 0.0
.dynamic 624 624 0 0.0
.got 5040 5040 0 0.0
.init 27 27 0 0.0
.init_array 1216 1216 0 0.0
.rodata 384760 384760 0 0.0
.text 9077443 9077491 48 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2535992 2535992 0 0.0
.bss 220744 220744 0 0.0
.data 5216 5216 0 0.0
.text 1498676 1498676 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1059160 1059160 0 0.0
bss 139123 139123 0 0.0
rodata 101560 101560 0 0.0
text 771260 771260 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1236496 1236496 0 0.0
bss 137395 137395 0 0.0
rodata 151392 151392 0 0.0
text 797676 797676 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1007152 1007152 0 0.0
bss 138029 138029 0 0.0
rodata 88824 88824 0 0.0
text 733004 733004 0 0.0
nxp contact k32w0+release (read only) 575756 575756 0 0.0
(read/write) 83140 83140 0 0.0
.bss 67856 67856 0 0.0
.data 2188 2188 0 0.0
.text 575220 575220 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 703156 703156 0 0.0
.bss 71200 71200 0 0.0
.data 2864 2864 0 0.0
.text 589712 589712 0 0.0
light k32w0+release (read only) 609752 609752 0 0.0
(read/write) 82600 82600 0 0.0
.bss 67296 67296 0 0.0
.data 2208 2208 0 0.0
.text 609216 609216 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 795016 795016 0 0.0
.bss 80736 80736 0 0.0
.data 2064 2064 0 0.0
.text 672848 672848 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 832056 832056 0 0.0
(read/write) 1807324 1807324 0 0.0
.bss 198540 198540 0 0.0
.data 2744 2744 0 0.0
.text 1597652 1597652 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 835152 835152 0 0.0
(read/write) 1728772 1728772 0 0.0
.bss 195468 195468 0 0.0
.data 2720 2720 0 0.0
.text 1522196 1522196 0 0.0
light cy8ckit_062s2_43012 (read only) 841872 841872 0 0.0
(read/write) 1647388 1647388 0 0.0
.bss 188932 188932 0 0.0
.data 2536 2536 0 0.0
.text 1447532 1447532 0 0.0
lock cy8ckit_062s2_43012 (read only) 814808 814808 0 0.0
(read/write) 1676068 1676068 0 0.0
.bss 216012 216012 0 0.0
.data 2520 2520 0 0.0
.text 1449148 1449148 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1133340 1133340 0 0.0
.bss 102620 102620 0 0.0
.data 856 856 0 0.0
.text 645720 645720 0 0.0
lock-app qpg6105+debug (read/write) 1093164 1093164 0 0.0
.bss 97292 97292 0 0.0
.data 860 860 0 0.0
.text 605548 605548 0 0.0
stm32 light STM32WB5MM-DK (read/write) 604953 604953 0 0.0
.bss 128468 128468 0 0.0
.data 688 688 0 0.0
.rodata 80532 80532 0 0.0
.text 385520 385520 0 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 833642 833642 0 0.0
bss 49852 49852 0 0.0
text 624320 624320 0 0.0
all-clusters-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 1095928 1095928 0 0.0
bss 101520 101520 0 0.0
text 796942 796942 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 47960 47960 0 0.0
(read/write) 1058452 1058452 0 0.0
bss 110016 110016 0 0.0
text 772304 772304 0 0.0
bridge-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 914140 914140 0 0.0
bss 92772 92772 0 0.0
text 655954 655954 0 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 836010 836010 0 0.0
bss 49896 49896 0 0.0
text 626752 626752 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 936760 936760 0 0.0
bss 77508 77508 0 0.0
text 703344 703344 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 29122 29122 0 0.0
(read/write) 1090540 1090540 0 0.0
bss 99864 99864 0 0.0
text 793950 793950 0 0.0
lock-app-dfu tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 911128 911128 0 0.0
bss 69176 69176 0 0.0
text 660154 660154 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 932936 932936 0 0.0
bss 92476 92476 0 0.0
text 674938 674938 0 0.0
pump-app tlsr9258a (read only) 52490 52490 0 0.0
(read/write) 833544 833544 0 0.0
bss 58140 58140 0 0.0
text 623730 623730 0 0.0
pump-controller-app tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 799664 799664 0 0.0
bss 56068 56068 0 0.0
text 598632 598632 0 0.0
shell tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 676148 676148 0 0.0
bss 73452 73452 0 0.0
text 461824 461824 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 843854 843854 0 0.0
bss 51524 51524 0 0.0
text 633396 633396 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 32220 32220 0 0.0
(read/write) 858529 858529 0 0.0
bss 59692 59692 0 0.0
text 642194 642194 0 0.0
thermostat tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 825228 825228 0 0.0
bss 56400 56400 0 0.0
text 618204 618204 0 0.0
window-covering tlsr9258a (read only) 52490 52490 0 0.0
(read/write) 838272 838272 0 0.0
bss 58356 58356 0 0.0
text 626030 626030 0 0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment