diff mbox series

[1/2] net: lwip: rename linkoutput() as net_lwip_tx()

Message ID 20250306143224.3080316-2-jerome.forissier@linaro.org
State New
Headers show
Series net: lwip: rename output function, add packet dump | expand

Commit Message

Jerome Forissier March 6, 2025, 2:32 p.m. UTC
Rename static function linkoutput() as net_lwip_tx() for consistency
with net_lwip_rx().

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
---
 net/lwip/net-lwip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ilias Apalodimas March 8, 2025, 7:50 a.m. UTC | #1
On Thu, 6 Mar 2025 at 16:32, Jerome Forissier
<jerome.forissier@linaro.org> wrote:
>
> Rename static function linkoutput() as net_lwip_tx() for consistency
> with net_lwip_rx().
>
> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
> ---
>  net/lwip/net-lwip.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c
> index cab1dd7d483..5a2a86686f4 100644
> --- a/net/lwip/net-lwip.c
> +++ b/net/lwip/net-lwip.c
> @@ -30,7 +30,7 @@ char *pxelinux_configfile;
>  struct in_addr net_ip;
>  char net_boot_file_name[1024];
>
> -static err_t linkoutput(struct netif *netif, struct pbuf *p)
> +static err_t net_lwip_tx(struct netif *netif, struct pbuf *p)
>  {
>         struct udevice *udev = netif->state;
>         void *pp = NULL;
> @@ -60,7 +60,7 @@ static err_t linkoutput(struct netif *netif, struct pbuf *p)
>  static err_t net_lwip_if_init(struct netif *netif)
>  {
>         netif->output = etharp_output;
> -       netif->linkoutput = linkoutput;
> +       netif->linkoutput = net_lwip_tx;
>         netif->mtu = 1500;
>         netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
>
> --
> 2.43.0
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
diff mbox series

Patch

diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c
index cab1dd7d483..5a2a86686f4 100644
--- a/net/lwip/net-lwip.c
+++ b/net/lwip/net-lwip.c
@@ -30,7 +30,7 @@  char *pxelinux_configfile;
 struct in_addr	net_ip;
 char net_boot_file_name[1024];
 
-static err_t linkoutput(struct netif *netif, struct pbuf *p)
+static err_t net_lwip_tx(struct netif *netif, struct pbuf *p)
 {
 	struct udevice *udev = netif->state;
 	void *pp = NULL;
@@ -60,7 +60,7 @@  static err_t linkoutput(struct netif *netif, struct pbuf *p)
 static err_t net_lwip_if_init(struct netif *netif)
 {
 	netif->output = etharp_output;
-	netif->linkoutput = linkoutput;
+	netif->linkoutput = net_lwip_tx;
 	netif->mtu = 1500;
 	netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;