[dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option

2020-05-04 Thread Pu Xu
When fragmenting ipv4 packet, the data offset should be calculated through the ihl field in ip header rather than using sizeof(struct rte_ipv4_hdr). Fixes: a7c528e5d71f ("net: add rte prefix to IP structure") Cc: olivier.m...@6wind.com Cc: sta...@dpdk.org Signed-off-by: Pu Xu <583

[dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option

2020-05-04 Thread Pu Xu
When fragmenting ipv4 packet, the data offset should be calculated through the ihl field in ip header rather than using sizeof(struct rte_ipv4_hdr). Fixes: a7c528e5d71f ("net: add rte prefix to IP structure") Cc: olivier.m...@6wind.com Cc: sta...@dpdk.org Signed-off-by: Pu Xu <583

[dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header options

2020-05-04 Thread Pu Xu
Signed-off-by: Pu Xu <583493...@qq.com> --- lib/librte_ip_frag/rte_ipv4_fragmentation.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/librte_ip_frag/rte_ipv4_fragmentation.c b/lib/librte_ip_frag/rte_ipv4_fragmentation.c index e9de335ae..156087

[dpdk-dev] [PATCH] ipv4_fragmentation: fix fragmentation of ipv4 packet with optional header

2020-05-04 Thread Pu Xu
Signed-off-by: Pu Xu <583493...@qq.com> --- lib/librte_ip_frag/rte_ipv4_fragmentation.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/librte_ip_frag/rte_ipv4_fragmentation.c b/lib/librte_ip_frag/rte_ipv4_fragmentation.c index e9de335ae..156

[dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option

2020-05-01 Thread Pu Xu
ned-off-by: Pu Xu <583493...@qq.com> --- lib/librte_ip_frag/rte_ipv4_fragmentation.c | 34 + 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/lib/librte_ip_frag/rte_ipv4_fragmentation.c b/lib/librte_ip_frag/rte_ipv4_fragmentation.c index e9de335ae..2e7739

[dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option

2020-05-01 Thread Pu Xu
When fragmenting ipv4 packet, the data offset should be calculated through the ihl field in ip header rather than using sizeof(struct rte_ipv4_hdr). Fixes: 4c38e5532a07 ("ip_frag: refactor IPv4 fragmentation into a proper library") Cc: anatoly.bura...@intel.com Cc: sta...@dpdk.org --- lib/librte

[dpdk-dev] [PATCH] ip_frag: fix fragmenting ipv4 packet with header option

2020-05-01 Thread Pu Xu
When fragmenting ipv4 packet, the data offset should be calculated through the ihl field in ip header rather than using sizeof(struct rte_ipv4_hdr). Fixes: a7c528e5d71f ("net: add rte prefix to IP structure") Cc: olivier.m...@6wind.com Cc: sta...@dpdk.org Signed-off-by: Pu Xu <583