Projects
openEuler:22.03:LTS:SP2
gazelle
_service:tar_scm_kernel_repo:0030-ethdev-regist...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:0030-ethdev-register-offload-to-netif.patch of Package gazelle
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.