30 lines
869 B
Diff
30 lines
869 B
Diff
From f15f4d7c178b35b41bab7c42162517e4142ae77a Mon Sep 17 00:00:00 2001
|
|
From: jiangheng <jiangheng14@huawei.com>
|
|
Date: Fri, 27 Oct 2023 20:11:29 +0800
|
|
Subject: [PATCH] ethdev: register offload to netif
|
|
|
|
---
|
|
src/lstack/netif/lstack_ethdev.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/src/lstack/netif/lstack_ethdev.c b/src/lstack/netif/lstack_ethdev.c
|
|
index 6e4c9de..80932c8 100644
|
|
--- a/src/lstack/netif/lstack_ethdev.c
|
|
+++ b/src/lstack/netif/lstack_ethdev.c
|
|
@@ -895,6 +895,12 @@ static err_t eth_dev_init(struct netif *netif)
|
|
|
|
netif->hwaddr_len = ETHER_ADDR_LEN;
|
|
|
|
+ netif_set_rxol_flags(netif, get_protocol_stack_group()->rx_offload);
|
|
+ netif_set_txol_flags(netif, get_protocol_stack_group()->tx_offload);
|
|
+ if (get_global_cfg_params()->stack_mode_rtc) {
|
|
+ netif_set_rtc_mode(netif);
|
|
+ }
|
|
+
|
|
return ERR_OK;
|
|
}
|
|
|
|
--
|
|
2.27.0
|
|
|