Projects
Eulaceura:Factory
lwip
_service:obs_scm:0068-enable-UDP-CKSUM-in-lwip....
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0068-enable-UDP-CKSUM-in-lwip.patch of Package lwip
From 73d78d322ba8bb997d74c92727d1ec8b8640607f Mon Sep 17 00:00:00 2001 From: kircher <majun65@huawei.com> Date: Wed, 21 Jun 2023 16:59:34 +0800 Subject: [PATCH] enable UDP CKSUM in lwip --- src/include/dpdk_cksum.h | 1 + src/include/lwipopts.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/include/dpdk_cksum.h b/src/include/dpdk_cksum.h index b48c926..2c5b31e 100644 --- a/src/include/dpdk_cksum.h +++ b/src/include/dpdk_cksum.h @@ -87,6 +87,7 @@ static inline void tcph_cksum_set(struct pbuf *p, u16_t len) { static inline void udph_cksum_set(struct pbuf *p, u16_t len) { p->l4_len = len; + p->ol_flags |= RTE_MBUF_F_TX_UDP_CKSUM; } static inline u16_t ip_chksum_pseudo_offload(u8_t proto, u16_t proto_len, diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h index 1c27051..f44b541 100644 --- a/src/include/lwipopts.h +++ b/src/include/lwipopts.h @@ -174,6 +174,12 @@ --------------------------------- */ #define LWIP_UDP 1 + +#define UDP_HLEN 8 + +#define MEMP_NUM_UDP_PCB 16 +#define MEMP_NUM_IGMP_GROUP 16 + #define DEFAULT_UDP_RECVMBOX_SIZE 4096 /* -- 2.33.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
.
浙ICP备2022010568号-2