You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/08/20 11:33:23 UTC
[nuttx] branch master updated (6b1e8b9bfe -> 90f8315432)
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 6b1e8b9bfe include/nuttx/tls.h: Remove the dup typedef tls_dtor_t
new 7f32eaa13e arm/qemu: Remove qemu_net.c which isn't needed anymore
new 90f8315432 arch: Remove up_netinitialize
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../components/drivers/special/socketcan.rst | 2 +-
arch/arm/src/qemu/Make.defs | 4 ---
arch/arm/src/qemu/qemu_net.c | 34 ----------------------
.../stm32f7/stm32f777zit6-meadow/src/stm32_boot.c | 4 ---
boards/x86_64/intel64/qemu-intel64/src/qemu_net.c | 3 +-
.../xtensa/esp32/esp32-devkitc/src/esp32_w5500.c | 2 +-
drivers/usbdev/Kconfig | 8 ++---
net/Kconfig | 8 ++---
8 files changed, 11 insertions(+), 54 deletions(-)
delete mode 100644 arch/arm/src/qemu/qemu_net.c
[nuttx] 01/02: arm/qemu: Remove qemu_net.c which isn't needed anymore
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7f32eaa13ebece539dc626122abe809eb1c86497
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Aug 18 02:12:35 2023 +0800
arm/qemu: Remove qemu_net.c which isn't needed anymore
after the follow patch:
commit 9aa57b6c535f41325b1c9021ee5e624b86ae447e
Author: wangbowen6 <wa...@xiaomi.com>
Date: Wed Mar 22 11:49:43 2023 +0800
virtio: add virtio framework in NuttX
1. virtio devics/drivers match and probe/remote mechanism;
2. virtio mmio transport layer based on OpenAmp (Compatible with both
virtio mmio version 1 and 2);
3. virtio-serial driver based on new virtio framework;
4. virtio-rng driver based on new virtio framework;
5. virtio-net driver based on new virtio framework
(IOB Offload implementation);
6. virtio-blk driver based on new virtio framework;
7. Remove the old virtio mmio framework, the old framework only
support mmio transport layer, and the new framwork support
more transport layer and this commit has implemented all the
old virtio drivers;
8. Refresh the the qemu-arm64 and qemu-riscv virtio related
configs, and update its README.txt;
New virtio-net driver has better performance
Compared with previous virtio-mmio-net:
| | master/-c | master/-s | this/-c | this/-s |
| :--------------------: | :-------: | :-------: | :-----: | :-----: |
| qemu-armv8a:netnsh | 539Mbps | 524Mbps | 906Mbps | 715Mbps |
| qemu-armv8a:netnsh_smp | 401Mbps | 437Mbps | 583Mbps | 505Mbps |
| rv-virt:netnsh | 487Mbps | 512Mbps | 760Mbps | 634Mbps |
| rv-virt:netnsh_smp | 387Mbps | 455Mbps | 447Mbps | 502Mbps |
| rv-virt:netnsh64 | 602Mbps | 595Mbps | 881Mbps | 769Mbps |
| rv-virt:netnsh64_smp | 414Mbps | 515Mbps | 491Mbps | 525Mbps |
| rv-virt:knetnsh64 | 515Mbps | 457Mbps | 606Mbps | 540Mbps |
| rv-virt:knetnsh64_smp | 308Mbps | 389Mbps | 415Mbps | 474Mbps |
Note: Both CONFIG_IOB_NBUFFERS=64, using iperf command, all in Mbits/sec
Tested in QEMU 7.2.2
Signed-off-by: wangbowen6 <wa...@xiaomi.com>
Signed-off-by: Zhe Weng <we...@xiaomi.com>
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/arm/src/qemu/Make.defs | 4 ----
arch/arm/src/qemu/qemu_net.c | 34 ----------------------------------
2 files changed, 38 deletions(-)
diff --git a/arch/arm/src/qemu/Make.defs b/arch/arm/src/qemu/Make.defs
index 3f2420d3c5..7ba6e1a0dc 100644
--- a/arch/arm/src/qemu/Make.defs
+++ b/arch/arm/src/qemu/Make.defs
@@ -22,7 +22,3 @@ include armv7-a/Make.defs
# qemu-specific C source files
CHIP_CSRCS = qemu_boot.c qemu_serial.c qemu_irq.c qemu_timer.c qemu_memorymap.c
-
-ifeq ($(CONFIG_DRIVERS_VIRTIO_NET),y)
-CHIP_CSRCS += qemu_net.c
-endif
diff --git a/arch/arm/src/qemu/qemu_net.c b/arch/arm/src/qemu/qemu_net.c
deleted file mode 100644
index a8cd3a509c..0000000000
--- a/arch/arm/src/qemu/qemu_net.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/****************************************************************************
- * arch/arm/src/qemu/qemu_net.c
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership. The
- * ASF licenses this file to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the
- * License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- *
- ****************************************************************************/
-
-/****************************************************************************
- * Included Files
- ****************************************************************************/
-
-#include <nuttx/virtio/virtio-mmio.h>
-
-/****************************************************************************
- * Public Functions
- ****************************************************************************/
-
-void arm_netinitialize(void)
-{
- virtio_mmio_init();
-}
[nuttx] 02/02: arch: Remove up_netinitialize
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 90f8315432f093012a8c4fcf3ca9e3b9cffb96ec
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Aug 18 02:17:28 2023 +0800
arch: Remove up_netinitialize
since this api change to xxx_netinitialize
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
Documentation/components/drivers/special/socketcan.rst | 2 +-
boards/arm/stm32f7/stm32f777zit6-meadow/src/stm32_boot.c | 4 ----
boards/x86_64/intel64/qemu-intel64/src/qemu_net.c | 3 +--
boards/xtensa/esp32/esp32-devkitc/src/esp32_w5500.c | 2 +-
drivers/usbdev/Kconfig | 8 ++++----
net/Kconfig | 8 ++++----
6 files changed, 11 insertions(+), 16 deletions(-)
diff --git a/Documentation/components/drivers/special/socketcan.rst b/Documentation/components/drivers/special/socketcan.rst
index cd9556fc48..b85905b40f 100644
--- a/Documentation/components/drivers/special/socketcan.rst
+++ b/Documentation/components/drivers/special/socketcan.rst
@@ -23,7 +23,7 @@ SocketCAN Device Drivers
- **Initialization sequence is as follows**.
- #. up_netinitialize(void) is called on startup of NuttX in this
+ #. xxx_netinitialize(void) is called on startup of NuttX in this
function you call your own init function to initialize your
CAN driver
#. In your own init function you create the net_driver_s
diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/src/stm32_boot.c b/boards/arm/stm32f7/stm32f777zit6-meadow/src/stm32_boot.c
index b94e2df956..8aaa0554c4 100644
--- a/boards/arm/stm32f7/stm32f777zit6-meadow/src/stm32_boot.c
+++ b/boards/arm/stm32f7/stm32f777zit6-meadow/src/stm32_boot.c
@@ -70,10 +70,6 @@ extern FAR struct qspi_dev_s *stm32f7_qspi_initialize(int intf);
*
****************************************************************************/
-void up_netinitialize(void)
-{
-}
-
void stm32_boardinitialize(void)
{
#if defined(CONFIG_STM32F7_SPI1) || defined(CONFIG_STM32F7_SPI2) || \
diff --git a/boards/x86_64/intel64/qemu-intel64/src/qemu_net.c b/boards/x86_64/intel64/qemu-intel64/src/qemu_net.c
index fe01de8b44..2464568ed6 100644
--- a/boards/x86_64/intel64/qemu-intel64/src/qemu_net.c
+++ b/boards/x86_64/intel64/qemu-intel64/src/qemu_net.c
@@ -50,8 +50,7 @@
****************************************************************************/
#ifdef CONFIG_NET
-void up_netinitialize(void)
+void x86_64_netinitialize(void)
{
}
#endif
-
diff --git a/boards/xtensa/esp32/esp32-devkitc/src/esp32_w5500.c b/boards/xtensa/esp32/esp32-devkitc/src/esp32_w5500.c
index dd6d245343..b629d19d00 100644
--- a/boards/xtensa/esp32/esp32-devkitc/src/esp32_w5500.c
+++ b/boards/xtensa/esp32/esp32-devkitc/src/esp32_w5500.c
@@ -179,7 +179,7 @@ static void up_reset(const struct w5500_lower_s *lower, bool reset)
* Name: arm_netinitialize
****************************************************************************/
-void up_netinitialize(void)
+void riscv_netinitialize(void)
{
struct spi_dev_s *spi;
int ret;
diff --git a/drivers/usbdev/Kconfig b/drivers/usbdev/Kconfig
index d9b855ee46..4faecbdc6b 100644
--- a/drivers/usbdev/Kconfig
+++ b/drivers/usbdev/Kconfig
@@ -963,10 +963,10 @@ menuconfig RNDIS
- "Remote NDIS To USB Mapping"
This option may required CONFIG_NETDEV_LATEINIT=y otherwise, the
- power-up initialization may call the non-existent up_netinitialize().
+ power-up initialization may call the non-existent xxx_netinitialize().
This option is not automatically selected because it may be that
you have an additional network device that requires the early
- up_netinitialize() call.
+ xxx_netinitialize() call.
if RNDIS
@@ -1102,10 +1102,10 @@ menuconfig NET_CDCECM
Revision 1.2, February 9, 2007"
This option may require CONFIG_NETDEV_LATEINIT=y, otherwise the
- power-up initialization may call the non-existent up_netinitialize().
+ power-up initialization may call the non-existent xxx_netinitialize().
This option is not automatically selected because it may be that
you have an additional network device that requires the early
- up_netinitialize() call.
+ xxx_netinitialize() call.
if NET_CDCECM
diff --git a/net/Kconfig b/net/Kconfig
index 82ac9eb7a6..3a67f2eb42 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -277,7 +277,7 @@ config NETDEV_LATEINIT
---help---
Normally, networking initialization occur in the later phase of the
boot process in the function up_initialize() when it calls the
- driver initialization function, up_netinitialize(). This
+ driver initialization function, xxx_netinitialize(). This
initialization occurs after a sufficient amount of the OS has been
initialized so that driver registration can be performed, but
before the completion of OS initialization and before the first
@@ -289,15 +289,15 @@ config NETDEV_LATEINIT
- If you are using SLIP or PPPD, then there will be no network
driver to be initialized,
- Certain multi-network configurations where a simple call to
- up_netinitialize() may be insufficient, and
+ xxx_netinitialize() may be insufficient, and
- Situations where there are other board-level hardware
dependencies so that the hardware is not in an appropriate
- state for up_netinitialize() to be called.
+ state for xxx_netinitialize() to be called.
Examples of this latter situation include such things as network
drivers that required some setup via an I2C I/O expander, or network
drivers that depend on USB, SPI, I2C, PCI, serial, or other
- interfaces that may not be ready when up_netinitialize() is normally
+ interfaces that may not be ready when xxx_netinitialize() is normally
called.
endmenu # Link layer support