summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-12-12 11:32:24 +0000
committerJerome Forissier <[email protected]>2026-01-15 11:09:28 +0100
commit60c228c07734a6f3d670c89d2db2e3addd8a73a8 (patch)
tree8d7766c96843c63fdd5315a81cfaf17babf34f6b /net
parent492ff73de699a40d9eec22b9afe631061b8baef0 (diff)
net: move net_state to net-common
Move the net_state variable into common code so that it can be used by either the legacy network code or lwIP. This is needed for porting across the NFS support code for use with lwIP. Signed-off-by: Andrew Goodbody <[email protected]> Reviewed-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'net')
-rw-r--r--net/net-common.c3
-rw-r--r--net/net.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/net/net-common.c b/net/net-common.c
index c68e19fc03e..ec1e179f7d9 100644
--- a/net/net-common.c
+++ b/net/net-common.c
@@ -6,6 +6,9 @@
#include <linux/time.h>
#include <rtc.h>
+/* Network loop state */
+enum net_loop_state net_state;
+
void copy_filename(char *dst, const char *src, int size)
{
if (src && *src && (*src == '"')) {
diff --git a/net/net.c b/net/net.c
index 44ce0ba4011..096f01427ba 100644
--- a/net/net.c
+++ b/net/net.c
@@ -157,8 +157,6 @@ const u8 net_null_ethaddr[6];
#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
void (*push_packet)(void *, int len) = 0;
#endif
-/* Network loop state */
-enum net_loop_state net_state;
/* Tried all network devices */
int net_restart_wrap;
/* Network loop restarted */