169 Commits

Author SHA1 Message Date
Lemmy Huang
0bd5979b72 cleancode: refactor memp
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 1d12d69321823922045c0875ffe3cdc24f6bca1d)
2024-08-20 20:42:11 +08:00
Lemmy Huang
44e92f10b1 cleancode: refactor sys_now and lwip_ioctl
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 752bbadcb8fb3768154cede5886cd61f8ce256e8)
2024-08-20 16:09:23 +08:00
Lemmy Huang
2bbeb8f3be cleancode: move tcp_hash_table to lwipgz_tcp_priv.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit e5281e35a4dc5fa93a4265e73b8c88d35d5367ef)
2024-08-20 15:53:18 +08:00
Lemmy Huang
7f3dbc4b41 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:46 +08:00
Lemmy Huang
517bbc7033 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:22:00 +08:00
Lemmy Huang
15385a2dd3 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:34 +08:00
Lemmy Huang
6424911a07 cleancode: refactor posix_api
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 372566ff31eea6f3eec6aa3434d390503fcbf44a)
2024-08-20 10:52:50 +08:00
Lemmy Huang
7c3d307dbd 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:45 +08:00
Lemmy Huang
931209bcad cleancode: refactor lwipsock.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit df157deb4258ed1b202ffa6277992b26371ae467)
2024-08-13 10:54:29 +08:00
Lemmy Huang
de9c0daf3c cleancode: rename gazelle files in lwip
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 38d1bebcd76bc1d761b89443aadc0f371d1515ab)
2024-07-17 14:30:48 +08:00
Lemmy Huang
6effda4290 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:10 +08:00
wanfeng
43619cd290 add MCAST_MSFILTER in setsockopt for MLDv2 of IPv6
(cherry picked from commit 840b330fab146ad8706b7f7ea6acf80f7c1f6a6e)
2024-07-12 15:30:52 +08:00
wanfeng
9dc9d24390 add MCAST_MSFILTER to setsockopt for IGMPv3
(cherry picked from commit 836544f19c307b9148cd3aa95b261e8d95775e16)
2024-07-05 17:44:34 +08:00
hantwofish
fc7816e4c3 virtio: record local_port for distributing pkts in virtio_user.
(cherry picked from commit a37e0838d2d238b31e9784a579dba4dd61b53a04)
2024-07-01 10:45:03 +08:00
wanfeng
396ce72607 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:53 +08:00
wanfeng
72578a7bdd add IP_ADD_SOURCE_MEMBERSHIP to setsockopt for igmpv3
(cherry picked from commit f8fce423a2ab60bd28e21bc10bc759bb1678d692)
2024-06-28 15:58:18 +08:00
jiangheng
efdb605ad6 distinguish tcp/udp get_from_sendring
(cherry picked from commit 681985d73e187b12d221d7adb1d3f1ffee269579)
2024-06-25 11:27:55 +08:00
yangchen
bd07f4a2ef lwip_sock: add sock_time_stamp
(cherry picked from commit 89bc4387b16a7c786ee9d7b0f3f34c61d04584a1)
2024-06-20 16:15:52 +08:00
yinbin6
b827de2e31 reduce pbuf poll size
(cherry picked from commit 31d2ac9cf3e6e42de830d4276cab3c64deee0851)
2024-06-20 15:56:21 +08:00
zhengjiebing
521e00f6d1 fix vlan filter bug
(cherry picked from commit 74a719175a88a9baddeb25ae83337f0f483ff1b8)
2024-06-20 11:08:34 +08:00
ningjin
9b32134abc change STAT_COUNTER from u16 to u64
(cherry picked from commit fb6adaf65970e0619f227df508f7698b8fcad9ee)
2024-05-31 15:48:50 +08:00
hantwofish
a019b46e7f mod checksum of ip_hdr and udp_hdr
(cherry picked from commit 9cb9aea40b320896c4703b36b9f173404402923f)
2024-05-21 19:37:40 +08:00
wanfeng
7d22ca7eb5 allow multicast membership to register multiple times
(cherry picked from commit 8034fbc3dea7d6d4ba831f459cf65e32d4ee476d)
2024-05-20 19:10:42 +08:00
hantwofish
22155c6c10 Fix MBUF memory leakage issue when message length is greater than MTU
(cherry picked from commit f82e0df44108578caa929cda16103e231531c9e3)
2024-05-13 15:33:18 +08:00
zhangyulongkylinos
78bffe3cc4 add MCAST_BLOCK_SOURCE to setsockopt for igmp3
(cherry picked from commit 6efc84747c29c2e313e4d75f7ab195679cf3829c)
2024-05-08 15:11:51 +08:00
zhangyulongkylinos
7ccc40f1a3 add MCAST_JOIN_GROUP to setsockopt for igmp3
(cherry picked from commit b474ee38542827cc8b3da5d57626c7357c27e8e7)
2024-05-08 15:08:25 +08:00
yinbin6
5932aba8f9 memset gazelle_quintuple in vdev_reg_done
(cherry picked from commit 3a20b81f5f851373509097ea8ed01719216d0cbb)
2024-05-08 14:46:25 +08:00
zhangyulongkylinos
83f81bf594 add MCAST_JOIN_SOURCE_GROUP to setsockopt for igmpv3
(cherry picked from commit 781677e2626ab21683cb1fba9a020f90d4cb6d1f)
2024-05-08 14:37:09 +08:00
wanfeng
27b06ec1cc add MCAST_BLOCK_SOURCE to setsockopt for mldv2
(cherry picked from commit 4056acb953a94e2b91d407f44a7c0440fb094d8b)
2024-05-08 14:25:38 +08:00
compile_success
c02ce97321 sync stats: add stats_proto in/out to xmit/recv 2024-05-08 03:01:31 +00:00
wanfeng
7dfe566da1 add MCAST_JOIN_SOURCE_GROUP to setsockopt for mldv2
(cherry picked from commit dc1cccb2ccb020e63c461da7bbee8604685eb424)
2024-04-26 15:29:00 +08:00
compile_success
3f09677924 fix udp recv memleak
(cherry picked from commit ae967bf99f5eacfc2d4a5a3ca4cb59c0560be245)
2024-04-26 14:33:54 +08:00
yinbin6
1a8b545caa opts: modify MEMP_NUM_UDP_PCB
(cherry picked from commit 4e15aea3ad871da35b49f20b4953f94f353a383f)
2024-04-21 15:06:01 +08:00
wanfeng
83ebb6b2ce support mldv2
(cherry picked from commit 7947f444bad18e8aee16530ec3c2f833e7527f97)
2024-04-11 11:30:57 +08:00
zhengjiebing
4fadc3e715 add vlan filter offload in dpdk_version.h
(cherry picked from commit 352a81803c85b32a34fc510beb67ff9f55a9757b)
2024-04-11 10:09:42 +08:00
liyunqing
2b40a11133 enable SO_REUSE_RXTOALL
(cherry picked from commit da346117b7ad6576c4144b42ca7dca092c1a118a)
2024-04-10 15:00:15 +08:00
zhangyulongkylinos
7b200e63ca support igmp v3 multicast protocol
(cherry picked from commit 0d24043a6d6afa40cd32473865b2233cc2febdb5)
2024-04-10 14:29:28 +08:00
wuchangye
858ab15d0b support querying udp multicast addresses
(cherry picked from commit 20c24417536b9cfe472706f13853017581957a50)
2024-04-10 10:27:47 +08:00
compile_success
dbaa64a5b5 add udp muticast loop
(cherry picked from commit 7fd4bda6b23cb520cac95bf506e6c71dfc216c38)
2024-03-28 21:55:22 +08:00
yangchen
e61ecb89df transfer pbuf timestamp in ip frag
(cherry picked from commit a880a665042b5b475d6adec1231d28f49a09ce8f)
2024-03-28 20:07:11 +08:00
liyunqing
fea0ba6d1d recv support SO_RCVTIMEO
(cherry picked from commit 8852706f49d5766f31df31192517b5c40b4a0a9a)
2024-03-28 19:26:09 +08:00
liyunqing
d83954db0f sync macros with kernel defined which use in recv and send
(cherry picked from commit 76c0799259f9e959f0a021267143a0d49331c86d)
2024-03-28 17:30:46 +08:00
liyunqing
f09679ac73 fix duplicate pbuf_free in udp_sendto
(cherry picked from commit 8fc1806c341e03df573dfa377b1877224d47da37)
2024-03-15 10:05:45 +08:00
yangchen
02e42ed6a6 support udp pkglen > mtu: modify netbuf_alloc size 2024-03-06 18:27:50 +08:00
yangchen
b3f7049833 support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS 2024-03-06 11:05:08 +08:00
邹鹏
95cbced822 add ppc64le support 2024-03-05 10:58:50 +08:00
jiangheng
a151525b14 remove backport patches
remove unused variable in pbuf
sys_mbox_new return error when rte ring create failed
2024-02-21 11:27:24 +08:00
jiangheng
63c40c2ad6 adapt lwip-2.2.0 2024-02-06 10:46:30 +08:00
shafeipaozi
6ccfaa3d0f support riscv 2024-02-02 18:06:24 +08:00
yangchen
f429ab929f support udp recv zero packets 2024-02-01 10:30:53 +08:00