159 Commits

Author SHA1 Message Date
Lemmy Huang
313071a87a cleancode: move options from opt.h to lwipopts.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit f8dbc52ccc0c57ada72279ab34ca764bbef3e91e)
2024-08-20 14:30:40 +08:00
Lemmy Huang
54f845d82b cleancode: refactor lwipgz_hlist.h
Changed:
    INIT_HLIST_HEAD -> hlist_init_head
    INIT_HLIST_NODE -> hlist_init_node
    hlist_empty     -> hlist_head_empty
    hlist_unhashed  -> hlist_node_null
    hlist_del_init  -> hlist_del_node
  Not changed:
    hlist_add_head
    hlist_add_before
    hlist_add_after
  Deprecated:
    INIT_HLIST_CTRL
    hlist_ctl_del
    hlist_pop_tail
    hlist_pop_head
    hlist_ctl_add_tail
    hlist_ctl_add_head
    hlist_ctl_add_after
    hlist_ctl_add_before

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit cdc8bd604439ca9b3fd6bf2500816f2e6269e64e)
2024-08-20 11:21:53 +08:00
Lemmy Huang
08b549ffed cleancode: refactor lwipgz_list.h
Changed:
    list_is_empty       -> list_head_empty
    list_is_null        -> list_node_null

    init_list_node      -> list_init_head
    init_list_node_null -> list_init_node

    list_add_node       -> list_add_node
    list_del_node_null  -> list_del_node
    list_del_node       -> __list_del_node
    list_for_each_safe  -> list_for_each_node
  Deprecated:
    list_del_node_init
  Added:
    list_get_node_count
    list_entry

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 4d42ad4eeda6b9e9feb902ba7e986aa5a153db49)
2024-08-20 11:08:28 +08:00
Lemmy Huang
d070ed1d29 cleancode: refactor posix_api
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 372566ff31eea6f3eec6aa3434d390503fcbf44a)
2024-08-20 10:52:44 +08:00
Lemmy Huang
7c837c41e5 cleancode: refactor posix type and get_socket
Changed:
    get_socket_by_fd -> lwip_get_socket
    get_socket

    SET_CONN_TYPE_LIBOS_OR_HOST   -> POSIX_SET_TYPE
    SET_CONN_TYPE_LIBOS
    SET_CONN_TYPE_HOST

    CONN_TYPE_IS_LIBOS            -> POSIX_IS_TYPE
    CONN_TYPE_IS_HOST

    CONN_TYPE_HAS_LIBOS_AND_HOST  -> POSIX_HAS_TYPE
    CONN_TYPE_HAS_LIBOS
    CONN_TYPE_HAS_HOST

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 722d58e4b17d5bc7f4bd4b9cfa8b59ee94eb92ff)
2024-08-20 09:38:39 +08:00
Lemmy Huang
95f537ee04 cleancode: refactor lwipsock.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit df157deb4258ed1b202ffa6277992b26371ae467)
2024-08-13 10:54:23 +08:00
Lemmy Huang
157c313b7a cleancode: rename gazelle files in lwip
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 38d1bebcd76bc1d761b89443aadc0f371d1515ab)
2024-07-17 14:30:42 +08:00
Lemmy Huang
0af6576712 cleancode: improving makefile readability
cleancode: remove perf

Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit a47e06640116c144a038f330f4b044c9e4741fcf)
2024-07-17 10:21:04 +08:00
wanfeng
8bcd29a4a6 add MCAST_MSFILTER in setsockopt for MLDv2 of IPv6
(cherry picked from commit 840b330fab146ad8706b7f7ea6acf80f7c1f6a6e)
2024-07-12 15:30:15 +08:00
wanfeng
9de64c1a4e add MCAST_MSFILTER to setsockopt for IGMPv3
(cherry picked from commit 836544f19c307b9148cd3aa95b261e8d95775e16)
2024-07-05 17:44:29 +08:00
hantwofish
f6332a974e virtio: record local_port for distributing pkts in virtio_user.
(cherry picked from commit a37e0838d2d238b31e9784a579dba4dd61b53a04)
2024-07-01 10:44:59 +08:00
wanfeng
7c84a436c6 Improve the size of multicast specifications, with a maximum of 16 groups and 32 members per group
(cherry picked from commit 6e68a85be7dd64edecfd030f699f711e09bbe4ac)
2024-06-28 17:31:50 +08:00
wanfeng
463d6574d5 add IP_ADD_SOURCE_MEMBERSHIP to setsockopt for igmpv3
(cherry picked from commit f8fce423a2ab60bd28e21bc10bc759bb1678d692)
2024-06-28 15:58:12 +08:00
jiangheng
bcee06a1c0 distinguish tcp/udp get_from_sendring
(cherry picked from commit 681985d73e187b12d221d7adb1d3f1ffee269579)
2024-06-25 11:27:46 +08:00
yangchen
2299adb5a2 lwip_sock: add sock_time_stamp
(cherry picked from commit 89bc4387b16a7c786ee9d7b0f3f34c61d04584a1)
2024-06-20 16:14:45 +08:00
yinbin6
aa71e572de reduce pbuf poll size
(cherry picked from commit 31d2ac9cf3e6e42de830d4276cab3c64deee0851)
2024-06-20 15:56:18 +08:00
zhengjiebing
24f58c038c fix vlan filter bug
(cherry picked from commit 74a719175a88a9baddeb25ae83337f0f483ff1b8)
2024-06-11 11:23:44 +08:00
ningjin
ce95f29294 change STAT_COUNTER from u16 to u64
(cherry picked from commit fb6adaf65970e0619f227df508f7698b8fcad9ee)
2024-05-24 16:17:42 +08:00
hantwofish
b2ede42c46 mod checksum of ip_hdr and udp_hdr
(cherry picked from commit 9cb9aea40b320896c4703b36b9f173404402923f)
2024-05-21 10:26:49 +08:00
wanfeng
25abfcf9ed allow multicast membership to register multiple times
(cherry picked from commit 8034fbc3dea7d6d4ba831f459cf65e32d4ee476d)
2024-05-20 19:10:32 +08:00
hantwofish
a9d8c07ec3 Fix MBUF memory leakage issue when message length is greater than MTU
(cherry picked from commit f82e0df44108578caa929cda16103e231531c9e3)
2024-05-13 15:33:05 +08:00
zhangyulongkylinos
87d69d42f4 add MCAST_BLOCK_SOURCE to setsockopt for igmp3
(cherry picked from commit 6efc84747c29c2e313e4d75f7ab195679cf3829c)
2024-05-08 15:11:45 +08:00
zhangyulongkylinos
ad947d597f add MCAST_JOIN_GROUP to setsockopt for igmp3
(cherry picked from commit b474ee38542827cc8b3da5d57626c7357c27e8e7)
2024-05-08 15:08:19 +08:00
yinbin6
013c8b22a3 memset gazelle_quintuple in vdev_reg_done
(cherry picked from commit 3a20b81f5f851373509097ea8ed01719216d0cbb)
2024-05-08 14:46:18 +08:00
zhangyulongkylinos
3677223178 add MCAST_JOIN_SOURCE_GROUP to setsockopt for igmpv3
(cherry picked from commit 781677e2626ab21683cb1fba9a020f90d4cb6d1f)
2024-05-08 14:36:57 +08:00
wanfeng
fc48b45e1d add MCAST_BLOCK_SOURCE to setsockopt for mldv2
(cherry picked from commit 4056acb953a94e2b91d407f44a7c0440fb094d8b)
2024-05-08 14:29:05 +08:00
compile_success
68e1774b06 sync stats: add stats_proto in/out to xmit/recv
(cherry picked from commit c02ce97321898aacda11fcfcea68f39e7bd26ea9)
2024-05-08 11:10:08 +08:00
wanfeng
f3082f053d add MCAST_JOIN_SOURCE_GROUP to setsockopt for mldv2
(cherry picked from commit dc1cccb2ccb020e63c461da7bbee8604685eb424)
2024-04-26 15:28:47 +08:00
compile_success
d070a0341d fix udp recv memleak
(cherry picked from commit ae967bf99f5eacfc2d4a5a3ca4cb59c0560be245)
2024-04-26 14:33:43 +08:00
yinbin6
faf19463a0 opts: modify MEMP_NUM_UDP_PCB
(cherry picked from commit 4e15aea3ad871da35b49f20b4953f94f353a383f)
2024-04-21 15:07:26 +08:00
wanfeng
462de6309c support mldv2
(cherry picked from commit 7947f444bad18e8aee16530ec3c2f833e7527f97)
2024-04-11 11:30:49 +08:00
zhengjiebing
44e366b40f add vlan filter offload in dpdk_version.h
(cherry picked from commit 352a81803c85b32a34fc510beb67ff9f55a9757b)
2024-04-11 10:09:34 +08:00
liyunqing
71fd1241c2 enable SO_REUSE_RXTOALL
(cherry picked from commit da346117b7ad6576c4144b42ca7dca092c1a118a)
2024-04-10 15:00:08 +08:00
zhangyulongkylinos
43020f4b23 support igmp v3 multicast protocol
(cherry picked from commit 0d24043a6d6afa40cd32473865b2233cc2febdb5)
2024-04-10 14:29:21 +08:00
wuchangye
5f512eb7a6 support querying udp multicast addresses
(cherry picked from commit 20c24417536b9cfe472706f13853017581957a50)
2024-04-10 10:27:40 +08:00
compile_success
1621b30f43 add udp muticast loop
(cherry picked from commit 7fd4bda6b23cb520cac95bf506e6c71dfc216c38)
2024-03-28 20:08:05 +08:00
yangchen
c72a7ff31b transfer pbuf timestamp in ip frag
(cherry picked from commit a880a665042b5b475d6adec1231d28f49a09ce8f)
2024-03-28 16:36:51 +08:00
liyunqing
bf15808c91 recv support SO_RCVTIMEO
(cherry picked from commit 8852706f49d5766f31df31192517b5c40b4a0a9a)
2024-03-28 15:15:34 +08:00
liyunqing
b16dba4db2 sync macros with kernel defined which use in recv and send
(cherry picked from commit 76c0799259f9e959f0a021267143a0d49331c86d)
2024-03-15 09:56:59 +08:00
liyunqing
4c7e4e500b fix duplicate pbuf_free in udp_sendto
(cherry picked from commit 8fc1806c341e03df573dfa377b1877224d47da37)
2024-03-14 17:53:18 +08:00
yangchen
16c3b10d02 support udp pkglen > mtu: modify netbuf_alloc size
(cherry picked from commit 02e42ed6a6b94db412a203c88aa6205ff8f55bd9)
2024-03-14 17:51:00 +08:00
yangchen
2af583e8bc support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS
(cherry picked from commit b3f70498337c85e89ce3353cd2c9dda5688e52c8)
2024-03-14 17:47:00 +08:00
邹鹏
263ff5b184 add ppc64le support
(cherry picked from commit 95cbced82248dfb69adeffd484f64f3653c5e3c7)
2024-03-14 17:42:51 +08:00
jiangheng
6c6c4e9a00 remove backport patches
remove unused variable in pbuf
sys_mbox_new return error when rte ring create failed

(cherry picked from commit a151525b147829163f4349b0b5f9f9011a63f525)
2024-03-14 17:15:12 +08:00
jiangheng
27c7086d5a adapt lwip-2.2.0
(cherry picked from commit 63c40c2ad66e5b32d96cecad0b123db28783ae5c)
2024-02-17 14:47:00 +08:00
shafeipaozi
0a65a3ebaf support riscv
(cherry picked from commit 6ccfaa3d0f215e1bbeaf52c6cd0cbfe57e587588)
2024-02-17 14:44:11 +08:00
yangchen
88c56a0a51 support udp recv zero packets
(cherry picked from commit f429ab929f17a65b8da97f14bc269a3face814e6)
2024-02-04 14:51:18 +08:00
jiangheng
18e86ab8ba fix receive fin packet process error
(cherry picked from commit 673d47530d39dbb30429c5e5600a6f8f21baeb7e)
2024-02-04 14:47:10 +08:00
jiangheng
8004679351 fix move lpcb to the front of list error
(cherry picked from commit 1a914bea5e118c1a5ff8b6ca6207edd28e66f6e4)
2024-02-04 14:44:08 +08:00
jiangheng
0ccb337e2f adapt for dpdk-23.11
(cherry picked from commit 15fb05fe81765f7102870669726a908be8016cb9)
2024-02-04 14:23:07 +08:00