169 Commits

Author SHA1 Message Date
Lemmy Huang
b8c502de17 cleancode: refactor memp
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 1d12d69321823922045c0875ffe3cdc24f6bca1d)
2024-08-20 20:42:14 +08:00
Lemmy Huang
a284916c66 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:27 +08:00
Lemmy Huang
c30539f72e 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:21 +08:00
Lemmy Huang
448ca49b0c 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:50 +08:00
Lemmy Huang
d009983569 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:04 +08:00
Lemmy Huang
ceedd96f97 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:38 +08:00
Lemmy Huang
7704678a42 cleancode: refactor posix_api
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 372566ff31eea6f3eec6aa3434d390503fcbf44a)
2024-08-20 10:52:53 +08:00
Lemmy Huang
3a52743c73 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:48 +08:00
Lemmy Huang
115a1e89e0 cleancode: refactor lwipsock.h
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit df157deb4258ed1b202ffa6277992b26371ae467)
2024-08-13 10:54:32 +08:00
Lemmy Huang
4f6230beba cleancode: rename gazelle files in lwip
Signed-off-by: Lemmy Huang <huangliming5@huawei.com>
(cherry picked from commit 38d1bebcd76bc1d761b89443aadc0f371d1515ab)
2024-07-17 14:30:51 +08:00
Lemmy Huang
403d10857d 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:13 +08:00
wanfeng
0e85c35e50 add MCAST_MSFILTER in setsockopt for MLDv2 of IPv6
(cherry picked from commit 840b330fab146ad8706b7f7ea6acf80f7c1f6a6e)
2024-07-12 15:31:25 +08:00
wanfeng
d44308f52b add MCAST_MSFILTER to setsockopt for IGMPv3
(cherry picked from commit 836544f19c307b9148cd3aa95b261e8d95775e16)
2024-07-05 17:44:37 +08:00
hantwofish
e6178582ca virtio: record local_port for distributing pkts in virtio_user.
(cherry picked from commit a37e0838d2d238b31e9784a579dba4dd61b53a04)
2024-07-01 10:45:05 +08:00
wanfeng
f582acc8e6 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:56 +08:00
wanfeng
876fd7bbac add IP_ADD_SOURCE_MEMBERSHIP to setsockopt for igmpv3
(cherry picked from commit f8fce423a2ab60bd28e21bc10bc759bb1678d692)
2024-06-28 15:58:21 +08:00
jiangheng
0da26eb655 distinguish tcp/udp get_from_sendring
(cherry picked from commit 681985d73e187b12d221d7adb1d3f1ffee269579)
2024-06-25 11:27:57 +08:00
yangchen
d3311cfa33 lwip_sock: add sock_time_stamp
(cherry picked from commit 89bc4387b16a7c786ee9d7b0f3f34c61d04584a1)
2024-06-20 16:16:27 +08:00
yinbin6
9d7c39d6a2 reduce pbuf poll size
(cherry picked from commit 31d2ac9cf3e6e42de830d4276cab3c64deee0851)
2024-06-20 16:01:08 +08:00
zhengjiebing
e8d9e04516 fix vlan filter bug
(cherry picked from commit 74a719175a88a9baddeb25ae83337f0f483ff1b8)
2024-06-11 11:24:00 +08:00
ningjin
48c22f1239 change STAT_COUNTER from u16 to u64
(cherry picked from commit fb6adaf65970e0619f227df508f7698b8fcad9ee)
2024-05-24 16:17:50 +08:00
hantwofish
1ac04914d6 mod checksum of ip_hdr and udp_hdr
(cherry picked from commit 9cb9aea40b320896c4703b36b9f173404402923f)
2024-05-21 10:27:00 +08:00
wanfeng
c3fcc1f152 allow multicast membership to register multiple times
(cherry picked from commit 8034fbc3dea7d6d4ba831f459cf65e32d4ee476d)
2024-05-20 19:10:37 +08:00
hantwofish
cbd3563b7a Fix MBUF memory leakage issue when message length is greater than MTU
(cherry picked from commit f82e0df44108578caa929cda16103e231531c9e3)
2024-05-13 15:33:13 +08:00
zhangyulongkylinos
b025d3eea8 add MCAST_BLOCK_SOURCE to setsockopt for igmp3
(cherry picked from commit 6efc84747c29c2e313e4d75f7ab195679cf3829c)
2024-05-08 15:11:48 +08:00
zhangyulongkylinos
2ac500183c add MCAST_JOIN_GROUP to setsockopt for igmp3
(cherry picked from commit b474ee38542827cc8b3da5d57626c7357c27e8e7)
2024-05-08 15:08:22 +08:00
yinbin6
85c83d662c memset gazelle_quintuple in vdev_reg_done
(cherry picked from commit 3a20b81f5f851373509097ea8ed01719216d0cbb)
2024-05-08 14:46:21 +08:00
zhangyulongkylinos
41837303ba add MCAST_JOIN_SOURCE_GROUP to setsockopt for igmpv3
(cherry picked from commit 781677e2626ab21683cb1fba9a020f90d4cb6d1f)
2024-05-08 14:37:05 +08:00
wanfeng
d5042cac88 add MCAST_BLOCK_SOURCE to setsockopt for mldv2
(cherry picked from commit 4056acb953a94e2b91d407f44a7c0440fb094d8b)
2024-05-08 14:29:01 +08:00
compile_success
530df40ad7 sync stats: add stats_proto in/out to xmit/recv
(cherry picked from commit c02ce97321898aacda11fcfcea68f39e7bd26ea9)
2024-05-08 11:10:14 +08:00
wanfeng
ca31c94a8a add MCAST_JOIN_SOURCE_GROUP to setsockopt for mldv2
(cherry picked from commit dc1cccb2ccb020e63c461da7bbee8604685eb424)
2024-04-26 15:28:56 +08:00
compile_success
71f7fb1725 fix udp recv memleak
(cherry picked from commit ae967bf99f5eacfc2d4a5a3ca4cb59c0560be245)
2024-04-26 14:33:49 +08:00
yinbin6
f00d4ecc4d opts: modify MEMP_NUM_UDP_PCB
(cherry picked from commit 4e15aea3ad871da35b49f20b4953f94f353a383f)
(cherry picked from commit 1a8b545caab11b45286beb52c0fa8520c039645d)
2024-04-21 15:37:33 +08:00
wanfeng
5a878fa78a support mldv2
(cherry picked from commit 7947f444bad18e8aee16530ec3c2f833e7527f97)
2024-04-21 15:18:04 +08:00
zhengjiebing
352c47e484 add vlan filter offload in dpdk_version.h
(cherry picked from commit 352a81803c85b32a34fc510beb67ff9f55a9757b)
2024-04-21 15:15:41 +08:00
liyunqing
46300a09a6 enable SO_REUSE_RXTOALL
(cherry picked from commit da346117b7ad6576c4144b42ca7dca092c1a118a)
2024-04-21 15:14:30 +08:00
zhangyulongkylinos
157cb56df9 support igmp v3 multicast protocol
(cherry picked from commit 0d24043a6d6afa40cd32473865b2233cc2febdb5)
2024-04-21 15:13:14 +08:00
wuchangye
e369948952 support querying udp multicast addresses
(cherry picked from commit 20c24417536b9cfe472706f13853017581957a50)
2024-04-21 15:10:43 +08:00
compile_success
2907b1202e add udp muticast loop
(cherry picked from commit 7fd4bda6b23cb520cac95bf506e6c71dfc216c38)
2024-04-21 15:08:56 +08:00
yangchen
0e239558e6 transfer pbuf timestamp in ip frag
(cherry picked from commit a880a665042b5b475d6adec1231d28f49a09ce8f)
2024-04-21 15:06:49 +08:00
liyunqing
fa2d30dc04 recv support SO_RCVTIMEO
(cherry picked from commit 8852706f49d5766f31df31192517b5c40b4a0a9a)
2024-04-19 20:21:00 +08:00
liyunqing
c9899cfe5f sync macros with kernel defined which use in recv and send
(cherry picked from commit 76c0799259f9e959f0a021267143a0d49331c86d)
2024-03-28 17:30:42 +08:00
liyunqing
3e8993168a fix duplicate pbuf_free in udp_sendto
(cherry picked from commit 8fc1806c341e03df573dfa377b1877224d47da37)
2024-03-15 10:05:41 +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