Kconfig: Rename API to LEGACY_API

Update Kconfig use use CONFIG_LEGACY_API since the API is now
deprecated.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-05 06:59:32 -06:00
parent 9268e78e44
commit 18d0bb3158
9 changed files with 24 additions and 20 deletions

View File

@@ -18,7 +18,7 @@
/* xx:xx:xx:xx:xx:xx\0 */
#define MAC_ADDR_STRLEN 18
#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
#if defined(CONFIG_LEGACY_API) || defined(CONFIG_EFI_LOADER)
void (*push_packet)(void *, int len) = 0;
#endif
static int net_try_count;
@@ -303,7 +303,7 @@ int net_lwip_rx(struct udevice *udev, struct netif *netif)
void net_process_received_packet(uchar *in_packet, int len)
{
#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
#if defined(CONFIG_LEGACY_API) || defined(CONFIG_EFI_LOADER)
if (push_packet)
(*push_packet)(in_packet, len);
#endif

View File

@@ -158,7 +158,7 @@ static unsigned net_ip_id;
/* Ethernet bcast address */
const u8 net_bcast_ethaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
const u8 net_null_ethaddr[6];
#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
#if defined(CONFIG_LEGACY_API) || defined(CONFIG_EFI_LOADER)
void (*push_packet)(void *, int len) = 0;
#endif
/* Network loop state */
@@ -1248,7 +1248,7 @@ void net_process_received_packet(uchar *in_packet, int len)
if (len < ETHER_HDR_SIZE)
return;
#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
#if defined(CONFIG_LEGACY_API) || defined(CONFIG_EFI_LOADER)
if (push_packet) {
(*push_packet)(in_packet, len);
return;