Commit Graph

3154 Commits

Author SHA1 Message Date
daichuan b29b276195 netdev_checksum: fix the iob null point dereference with hardware_chksum_start
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-21 01:34:46 +08:00
daichuan 7ba5e7d5d9 net: modify g_netdevices_lock with rmutex_t
with ipforward, netdev_foreach and netdev_virefy both use netdev_list_lock, so g_netdevices_lock must use rmutex_t

Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-21 01:34:46 +08:00
daichuan f3ac09af7a netdev: delete macro CONFIG_NETDEV_CHECKSUM with nuttx
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-21 01:34:29 +08:00
OceanfromXiaomi a0457e407c nuttx: add NETDEV_RX_STAMP flag in d_features.
Signed-off-by: OceanfromXiaomi <zhaohaiyang1@xiaomi.com>
2026-04-21 01:34:19 +08:00
OceanfromXiaomi 2ac370a202 nuttx: modify "d_rxtime" and use "iob->io_time" to instead in newer netdev driver .
Signed-off-by: OceanfromXiaomi <zhaohaiyang1@xiaomi.com>
2026-04-21 01:34:13 +08:00
dongjiuzhu1 bdd4f35a68 net: add per cpu support under bmp mode
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-21 01:33:57 +08:00
zhangshuai39 d283e1e258 net/netdev: Notify all connections when the NIC is unregistered
Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
2026-04-21 01:33:55 +08:00
gaohedong 9cbcb35e88 net/ethernet: fix compile warning issue
fix compile warning issue for tasking compiler

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-21 01:33:54 +08:00
zhanghongyu 5ed35c57b0 devif_poll: only call the corresponding xxx_poll when there is data to be sent
reduce the execution consumption of irrelevant code

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:33:48 +08:00
gaohedong b45bbd3520 net/ethtool: add ethtool-ioctl to get/set hardware channel info
add ethtool-ioctl to get/set hardware channel info

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-21 01:33:46 +08:00
zhanghongyu be40cb001e netdev_lock: workaround for compilation error caused by the include of header files
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:33:28 +08:00
zhanghongyu 39cc8fd375 netdev_lock: change netdev_lock and netdev_unlock to a macro definition
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:33:27 +08:00
buxiasen 9cf07992c3 net/netdev: add support for BMP
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-21 01:32:41 +08:00
wangjinjing1 446b36159f net/netdev: make sure igmp init with multicast dev
Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
2026-04-21 01:32:16 +08:00
zhangkai25 a985bb1c62 net\netdev: Add macro protection to ensure that Microsoft vc compiler compiles successfully
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2026-04-21 01:32:13 +08:00
zhangkai25 160ce787f0 netdev_ioctl adds SIOCDEVPRIVATE
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2026-04-21 01:32:05 +08:00
wenquan1 9547209b0c Revert "net/arp: reducing unnecessary ARP requests can mitigate"
This reverts commit 696a94c8055dc59933457e8ce5c3c91dbecab980.
first, when continuous ping from tester to vela, if ignore arp expire when ping response use arp_out to build L2 layer, this cause TC13 testing arp entry expire feature failed. second, the patch of support queue iob when arp_out failed can fix this bug.
2026-04-21 01:31:39 +08:00
hujun5 e4981191b7 mutex: add mutex_type.h
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:31:31 +08:00
zhanghongyu af5d584a9b netdev_foreach.c: add lock protection during the traversal process
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:30:44 +08:00
zhanghongyu 255a766079 arp: the manually configured arp table should not have a timeout period
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:29:11 +08:00
zhanghongyu caac955745 netdev: move netdev_lock to a more suitable location
the previous logic could not protect the access to conn in txdone

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:28:47 +08:00
zhanghongyu b6137af535 net: Add netdev_lock in xxx_input and txavail to adapt to drivers that do not use upperhalf
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:28:25 +08:00
zhanghongyu f92159af7b net/utils/net_lock.c: add api to lock conn and netdev
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:28:23 +08:00
zhanghongyu 9084edb59b net/netdev: separate netdev_list_lock from net_lock
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:28:23 +08:00
zhanghongyu 9b7307febb net: move the tool interface functions to the public directory
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:27:34 +08:00
daichuan e3f4dc4fb5 When supporting hardware checksum offloading, the network protocol stack does not perform TCP/UDP pseudo-header checksum calculation
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-21 01:27:31 +08:00
nuttxs 3db7d5c6cf net/arp: reducing unnecessary ARP requests can mitigate
network congestion and avoid packet delays caused by
waiting for ARP responses

Signed-off-by: nuttxs <zhaoqing.zhang@sony.com>
2026-04-21 01:27:25 +08:00
daichuan dacab825f5 fix compile error with struct udp_hdr_s/tcp_hrd_s and add cmake/makefile with netdev_checksum.c
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-21 01:27:22 +08:00
daichuan 2dbcc03b09 modify for hardware checksum offload
Signed-off-by: daichuan <daichuan@xiaomi.com>
2026-04-21 01:27:22 +08:00
zhanghongyu fe3b5f9fbe include/netinet/arp.h: change the type of arp_dev from uint8_t to char
the same variable type in linux is char, in order to avoid modifying
the third-party library code when porting the third-party library code.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:25:34 +08:00
gaohedong ec12413b02 net/ethernet: ARP can be configured on interface
ARP can be configured on interface.

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-21 01:25:32 +08:00
zhanghongyu 50b4d7d1b7 mld: free all mld group when netdev unregister
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:25:31 +08:00
wangjinjing1 4daee9b533 net/can: add can transceiver state ioctl cmd
get transceiver state:SIOCGCANTRSVSTATE
set transceiver state:SIOCSCANTRSVSTATE

Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
2026-04-21 01:23:41 +08:00
wangjinjing1 c58c66438a net/can: add can ioctl cmd SIOCCANOFLUSH
Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
2026-04-21 01:23:41 +08:00
zhanghongyu dabf5b2d54 net/netdev/netdev_register.c: skip mld_devinit if Nic can not support IFF_MULTICAST
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:23:26 +08:00
Zhe Weng a0f790d932 netdev/ioctl: Add support for simple VLAN ioctl
Supporting ADD_VLAN_CMD and DEL_VLAN_CMD of SIOCSIFVLAN
Ref: https://github.com/torvalds/linux/blob/v6.12/net/8021q/vlan.c#L621

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-21 01:19:43 +08:00
zhanghongyu 6d236bab71 net/netdev/netdev_ioctl.c: correct the valid judgment logic of cmd
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:17:32 +08:00
Zhe Weng ca9692558d net/netdev: Add netdev_iob_replace_l2 for netdev to avoid misuse
And fix wrong `d_len` for IOBs from `upper->txq` in TX.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-21 01:15:58 +08:00
wangchen dedcbac369 net:modify check condition from IFF_UP to IFF_RUNNING in sendto_next_transfer
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-21 01:15:27 +08:00
wangchen 5bb113a38f netdev:when network device is running status,the network protocol stack is allowed to send packet to the network device and to receive from the network device
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2026-04-21 01:14:53 +08:00
openvela-robot 77f0bea7f5 Merge branch 'master' into vela
apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc

Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:12:27 +08:00
openvela-robot 87c6ff19cf mm: Fix some typos
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:12:20 +08:00
openvela-robot b2f5ba0753 syslog: convert \n to \r\n in syslog framework layer
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2026-04-21 01:12:15 +08:00
openvela-robot 24c239f8f5 arm/cmake: fix cmake compile error
1. The -c parameter should not be added during the link phase, otherwise the link will fail.
2. If it is the clang compiler, its toolchain library should use --print-file-name to find it, otherwise an error will occur

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-21 01:12:09 +08:00
openvela-robot 44ed68d400 fs/rpmsgfs: return real err value when open failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-21 01:12:00 +08:00
openvela-robot 85912ed402 syslog/channel: rename syslog_channel() to syslog_channel_register()
Change syslog API naming more reasonable:

1. rename syslog_channel() to syslog_channel_register()
2. rename syslog_channel_remove() to syslog_channel_unregister()

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:11:54 +08:00
openvela-robot 0fdd165dfa Fix disable msi when msi capability not exist issue
Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
2026-04-21 01:11:48 +08:00
openvela-robot 61f4f9411d openamp: sync with community
Comminity has upgrade the openamp to the last commit (near 2024.05 Release),
sync back to vela.

Only modify the makefile and upgrade the patch, should be no impact in any
features.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:11:43 +08:00
Jukka Laitinen c341813c71 net/netdev/netdev_default.c: Exclude socket can from default devices
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2026-04-21 01:11:37 +08:00
openvela-robot 4ea93dbabf add a flag of lin internal sleep/wakeup state
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:11:35 +08:00