ip_frag: extend rte_ipv6_frag_get_ipv6_fragment_header()
Subsystems (2)
PATCH v3 1/1 ip_frag: extend rte_ipv6_frag_get_ipv6_fragment_header()
Extend rte_ipv6_frag_get_ipv6_fragment_header() to skip over any other IPv6 extension headers when finding the fragment header.
According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.
v2:
* Moved IPv6 extension header definitions to lib_net.
drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++-- 9 files changed, 86 insertions(+), 21 deletions(-)
drivers/net/failsafe/Makefile +0 -1
@@ -34,7 +34,6 @@ CFLAGS += -std=gnu99 -Wextra CFLAGS += -O3 CFLAGS += -I. CFLAGS += -D_DEFAULT_SOURCE -CFLAGS += -D_XOPEN_SOURCE=700 CFLAGS += $(WERROR_FLAGS) CFLAGS += -Wno-strict-prototypes CFLAGS += -pedantic
drivers/net/failsafe/meson.build +0 -1
@@ -3,7 +3,6 @@ cflags += '-std=gnu99' cflags += '-D_DEFAULT_SOURCE' -cflags += '-D_XOPEN_SOURCE=700' cflags += '-pedantic' if host_machine.system() == 'linux' cflags += '-DLINUX'
examples/ip_reassembly/main.c +4 -2
@@ -366,12 +366,14 @@ reassemble(struct rte_mbuf *m, uint16_t portid, uint32_t queue, eth_hdr->ether_type =rte_be_to_cpu_16 (ETHER_TYPE_IPv4); }else if (RTE_ETH_IS_IPV6_HDR (m->packet_type)) {/* if packet is IPv6 */ -struct ipv6_extension_fragment *frag_hdr; +const struct ipv6_extension_fragment *frag_hdr; +struct ipv6_extension_fragment frag_hdr_buf;struct ipv6_hdr *ip_hdr; ip_hdr = (struct ipv6_hdr *)(eth_hdr +1 ); - frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (ip_hdr); + frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (m, + ip_hdr, &frag_hdr_buf);if (frag_hdr !=NULL ) {struct rte_mbuf *mo;
lib/librte_ip_frag/rte_ip_frag.h +10 -13
@@ -208,28 +208,25 @@ rte_ipv6_fragment_packet(struct rte_mbuf *pkt_in,struct rte_mbuf *rte_ipv6_frag_reassemble_packet (struct rte_ip_frag_tbl *tbl,struct rte_ip_frag_death_row *dr,struct rte_mbuf *mb,uint64_t tms,struct ipv6_hdr *ip_hdr, -struct ipv6_extension_fragment *frag_hdr); +const struct ipv6_extension_fragment *frag_hdr);/** * Return a pointer to the packet's fragment header, if found. -* It only looks at the extension header that's right after the fixed IPv6 -* header, and doesn't follow the whole chain of extension headers. * -* @param hdr +* @param pkt +* Pointer to the mbuf of the packet. +* @param ip_hdr * Pointer to the IPv6 header. +* @param frag_hdr +* A pointer to the buffer where the fragment header +* will be copied if it is not contiguous in mbuf data. * @return * Pointer to the IPv6 fragment extension header, or NULL if it's not * present. */ -static inline struct ipv6_extension_fragment * -rte_ipv6_frag_get_ipv6_fragment_header (struct ipv6_hdr *hdr) -{ -if (hdr->proto ==IPPROTO_FRAGMENT ) { -return (struct ipv6_extension_fragment *) ++hdr; - } -else -return NULL ; -} +const struct ipv6_extension_fragment *rte_ipv6_frag_get_ipv6_fragment_header ( +struct rte_mbuf *pkt,const struct ipv6_hdr *ip_hdr, +struct ipv6_extension_fragment *frag_hdr);/** * IPv4 fragmentation.
lib/librte_ip_frag/rte_ip_frag_version.map +1 -0
@@ -8,6 +8,7 @@ DPDK_2.0 { rte_ipv4_fragment_packet; rte_ipv6_frag_reassemble_packet; rte_ipv6_fragment_packet; + rte_ipv6_frag_get_ipv6_fragment_header; local: *; };
lib/librte_ip_frag/rte_ipv6_fragmentation.c +38 -0
@@ -176,3 +176,41 @@ rte_ipv6_fragment_packet(struct rte_mbuf *pkt_in,return out_pkt_pos; } + +const struct ipv6_extension_fragment * +rte_ipv6_frag_get_ipv6_fragment_header (struct rte_mbuf *pkt, +const struct ipv6_hdr *ip_hdr, +struct ipv6_extension_fragment *frag_hdr) +{ +size_t offset =sizeof (struct ipv6_hdr ); +uint8_t nexthdr = ip_hdr->proto; + +while (ipv6_ext_hdr (nexthdr)) { +struct ipv6_opt_hdr opt; +const struct ipv6_opt_hdr *popt =rte_pktmbuf_read (pkt, + offset,sizeof (opt), &opt); +if (popt ==NULL ) +return NULL ; + +switch (nexthdr) { +case IPPROTO_NONE : +return NULL ; + +case IPPROTO_FRAGMENT : +return rte_pktmbuf_read (pkt, offset, +sizeof (*frag_hdr), frag_hdr); + +case IPPROTO_AH : + offset += (popt->hdrlen +2 ) <<2 ; +break ; + +default : + offset += (popt->hdrlen +1 ) <<3 ; +break ; + } + + nexthdr = popt->nexthdr; + } + +return NULL ; +}
lib/librte_ip_frag/rte_ipv6_reassembly.c +2 -2
@@ -135,8 +135,8 @@ ipv6_frag_reassemble(struct ip_frag_pkt *fp)#define FRAG_OFFSET (x) (rte_cpu_to_be_16(x) >> 3)struct rte_mbuf *rte_ipv6_frag_reassemble_packet (struct rte_ip_frag_tbl *tbl, -struct rte_ip_frag_death_row *dr,struct rte_mbuf *mb,uint64_t tms, -struct ipv6_hdr *ip_hdr,struct ipv6_extension_fragment *frag_hdr) +struct rte_ip_frag_death_row *dr,struct rte_mbuf *mb,uint64_t tms, +struct ipv6_hdr *ip_hdr,const struct ipv6_extension_fragment *frag_hdr) {struct ip_frag_pkt *fp;struct ip_frag_key key;
lib/librte_net/rte_ip.h +27 -0
@@ -350,6 +350,14 @@ struct ipv6_hdr {#define IPV6_HDR_FL_MASK ((1u << IPV6_HDR_TC_SHIFT) - 1)#define IPV6_HDR_TC_MASK (0xf << IPV6_HDR_TC_SHIFT) +/** +* IPv6 extension header +*/ +struct ipv6_opt_hdr { +uint8_t nexthdr; +uint8_t hdrlen; +} __attribute__((packed)); +/** * Process the pseudo-header checksum of an IPv6 header. *
@@ -421,6 +429,25 @@ rte_ipv6_udptcp_cksum(const struct ipv6_hdr *ipv6_hdr, const void *l4_hdr)return (uint16_t )cksum; } +/** +* Check whether an IPv6 nexthdr value is for an IPv6 extension header. +* +* @param nexthdr +* The protocol/next header field from an IPv6 (extension) header. +* @return +* Whether the nexthdr field is for an IPv6 extension header. +*/ +static inline int +ipv6_ext_hdr (uint8_t nexthdr) +{ +return (nexthdr ==IPPROTO_HOPOPTS ) || + (nexthdr ==IPPROTO_ROUTING ) || + (nexthdr ==IPPROTO_FRAGMENT ) || + (nexthdr ==IPPROTO_AH ) || + (nexthdr ==IPPROTO_NONE ) || + (nexthdr ==IPPROTO_DSTOPTS ); +} + #ifdef __cplusplus }#endif
lib/librte_port/rte_port_ras.c +4 -2
@@ -184,9 +184,11 @@ process_ipv6(struct rte_port_ring_writer_ras *p, struct rte_mbuf *pkt)/* Assume there is no ethernet header */ struct ipv6_hdr *pkt_hdr = rte_pktmbuf_mtod(pkt, struct ipv6_hdr *); -struct ipv6_extension_fragment *frag_hdr; +const struct ipv6_extension_fragment *frag_hdr; +struct ipv6_extension_fragment frag_hdr_buf;uint16_t frag_data =0 ; - frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (pkt_hdr); + frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (pkt, pkt_hdr, + &frag_hdr_buf);if (frag_hdr !=NULL ) frag_data =rte_be_to_cpu_16 (frag_hdr->frag_data);
Signature · 1 line
2.17.1
Re-upping for review.
Thanks,
Cody
Quoted 273 lines · Cody Doucette
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++-- 9 files changed, 86 insertions(+), 21 deletions(-)drivers/net/failsafe/Makefile +0
-1@@ -34,7 +34,6 @@ CFLAGS += -std=gnu99 -Wextra CFLAGS += -O3 CFLAGS += -I. CFLAGS += -D_DEFAULT_SOURCE -CFLAGS += -D_XOPEN_SOURCE=700 CFLAGS += $(WERROR_FLAGS) CFLAGS += -Wno-strict-prototypes CFLAGS += -pedanticdrivers/net/failsafe/meson.build +0
-1@@ -3,7 +3,6 @@ cflags += '-std=gnu99' cflags += '-D_DEFAULT_SOURCE' -cflags += '-D_XOPEN_SOURCE=700' cflags += '-pedantic' if host_machine.system() == 'linux' cflags += '-DLINUX'examples/ip_reassembly/main.c +4
-2@@ -366,12 +366,14 @@ reassemble(struct rte_mbuf *m, uint16_t portid,uint32_t queue, eth_hdr->ether_type = rte_be_to_cpu_16(ETHER_TYPE_IPv4); }else if (RTE_ETH_IS_IPV6_HDR (m->packet_type)) {/* if packet is IPv6 */ -struct ipv6_extension_fragment *frag_hdr; +const struct ipv6_extension_fragment *frag_hdr; +struct ipv6_extension_fragment frag_hdr_buf;struct ipv6_hdr *ip_hdr; ip_hdr = (struct ipv6_hdr *)(eth_hdr +1 ); - frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (ip_hdr); + frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (m, + ip_hdr, &frag_hdr_buf);if (frag_hdr !=NULL ) {struct rte_mbuf *mo;lib/librte_ip_frag/rte_ip_ renamed from lib/librte_ip_frag/rte_ip_frag.h +0
-0
frag.h
indexb3f3f78df..bd6f02a16100644lib/librte_ip_frag/rte_ip_frag.h +8
-13@@ -208,28 +208,25 @@ rte_ipv6_fragment_packet(struct rte_mbuf *pkt_in,struct rte_mbuf *rte_ipv6_frag_reassemble_packet (struct rte_ip_frag_tbl *tbl,struct rte_ip_frag_death_row *dr,struct rte_mbuf *mb,uint64_t tms,struct ipv6_hdr *ip_hdr, -struct ipv6_extension_fragment *frag_hdr); +const struct ipv6_extension_fragment *frag_hdr);/** * Return a pointer to the packet's fragment header, if found. -* It only looks at the extension header that's right after the fixed IPv6 -* header, and doesn't follow the whole chain of extension headers. * -* @param hdr +* @param pkt +* Pointer to the mbuf of the packet. +* @param ip_hdr * Pointer to the IPv6 header. +* @param frag_hdr +* A pointer to the buffer where the fragment header +* will be copied if it is not contiguous in mbuf data. * @return * Pointer to the IPv6 fragment extension header, or NULL if it's not * present. */ -static inline struct ipv6_extension_fragment * -rte_ipv6_frag_get_ipv6_fragment_header (struct ipv6_hdr *hdr) -{ -if (hdr->proto ==IPPROTO_FRAGMENT ) { -return (struct ipv6_extension_fragment *) ++hdr; - } -else -return NULL ; -} +const struct ipv6_extension_fragment *rte_ipv6_frag_get_ipv6_fragment_header(
lib/librte_ip_frag/rte_ip_frag.h +2
-0+ struct rte_mbuf *pkt, const struct ipv6_hdr *ip_hdr, + struct ipv6_extension_fragment *frag_hdr);/** * IPv4 fragmentation. lib/librte_ip_frag/rte_ip_frag_version.map +1
-0@@ -8,6 +8,7 @@ DPDK_2.0 { rte_ipv4_fragment_packet; rte_ipv6_frag_reassemble_packet; rte_ipv6_fragment_packet; + rte_ipv6_frag_get_ipv6_fragment_header; local: *; };lib/librte_ip_frag/rte_ipv6_fragmentation.c +38
-0@@ -176,3 +176,41 @@ rte_ipv6_fragment_packet(struct rte_mbuf *pkt_in,return out_pkt_pos; } + +const struct ipv6_extension_fragment * +rte_ipv6_frag_get_ipv6_fragment_header (struct rte_mbuf *pkt, +const struct ipv6_hdr *ip_hdr, +struct ipv6_extension_fragment *frag_hdr) +{ +size_t offset =sizeof (struct ipv6_hdr ); +uint8_t nexthdr = ip_hdr->proto; + +while (ipv6_ext_hdr (nexthdr)) { +struct ipv6_opt_hdr opt; +const struct ipv6_opt_hdr *popt =rte_pktmbuf_read (pkt, + offset,sizeof (opt), &opt); +if (popt ==NULL ) +return NULL ; + +switch (nexthdr) { +case IPPROTO_NONE : +return NULL ; + +case IPPROTO_FRAGMENT : +return rte_pktmbuf_read (pkt, offset, +sizeof (*frag_hdr), frag_hdr); + +case IPPROTO_AH : + offset += (popt->hdrlen +2 ) <<2 ; +break ; + +default : + offset += (popt->hdrlen +1 ) <<3 ; +break ; + } + + nexthdr = popt->nexthdr; + } + +return NULL ; +}lib/librte_ip_frag/rte_ipv6_reassembly.c +2
-2@@ -135,8 +135,8 @@ ipv6_frag_reassemble(struct ip_frag_pkt *fp)#define FRAG_OFFSET (x) (rte_cpu_to_be_16(x) >> 3)struct rte_mbuf *rte_ipv6_frag_reassemble_packet (struct rte_ip_frag_tbl *tbl, -struct rte_ip_frag_death_row *dr,struct rte_mbuf *mb,uint64_t tms, -struct ipv6_hdr *ip_hdr,struct ipv6_extension_fragment *frag_hdr) + struct rte_ip_frag_death_row *dr, struct rte_mbuf *mb, uint64_t tms, + struct ipv6_hdr *ip_hdr, const struct ipv6_extension_fragment
*frag_hdr){ struct ip_frag_pkt *fp; struct ip_frag_key key;lib/librte_net/rte_ip.h +27
-0@@ -350,6 +350,14 @@ struct ipv6_hdr {#define IPV6_HDR_FL_MASK ((1u << IPV6_HDR_TC_SHIFT) - 1)#define IPV6_HDR_TC_MASK (0xf << IPV6_HDR_TC_SHIFT) +/** +* IPv6 extension header +*/ +struct ipv6_opt_hdr { +uint8_t nexthdr; +uint8_t hdrlen; +} __attribute__((packed)); +/** * Process the pseudo-header checksum of an IPv6 header. * @@ -421,6 +429,25 @@ rte_ipv6_udptcp_cksum(const struct ipv6_hdr *ipv6_hdr, const void *l4_hdr)return (uint16_t )cksum; } +/** +* Check whether an IPv6 nexthdr value is for an IPv6 extension header. +* +* @param nexthdr +* The protocol/next header field from an IPv6 (extension) header. +* @return +* Whether the nexthdr field is for an IPv6 extension header. +*/ +static inline int +ipv6_ext_hdr (uint8_t nexthdr) +{ +return (nexthdr ==IPPROTO_HOPOPTS ) || + (nexthdr ==IPPROTO_ROUTING ) || + (nexthdr ==IPPROTO_FRAGMENT ) || + (nexthdr ==IPPROTO_AH ) || + (nexthdr ==IPPROTO_NONE ) || + (nexthdr ==IPPROTO_DSTOPTS ); +} + #ifdef __cplusplus }#endif
lib/librte_port/rte_port_ renamed from lib/librte_port/rte_port_ras.c +0
-0
ras.c
indexc8b2e19bf..28764f744100644lib/librte_port/rte_port_ras.c +4
-2@@ -184,9 +184,11 @@ process_ipv6(struct rte_port_ring_writer_ras *p, struct rte_mbuf *pkt)/* Assume there is no ethernet header */ struct ipv6_hdr *pkt_hdr = rte_pktmbuf_mtod(pkt, struct ipv6_hdr *); -struct ipv6_extension_fragment *frag_hdr; +const struct ipv6_extension_fragment *frag_hdr; +struct ipv6_extension_fragment frag_hdr_buf;uint16_t frag_data =0 ; - frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (pkt_hdr); + frag_hdr =rte_ipv6_frag_get_ipv6_fragment_header (pkt, pkt_hdr, + &frag_hdr_buf);if (frag_hdr !=NULL )frag_data = rte_be_to_cpu_16(frag_hdr->frag_data);--
2.17.1
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.
How failsafe is related to ip_frag?
Quoted 12 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--
Changes in failsafe, rte_net and rte_port look like garbage.
Anyway, the ip_frag part requires some review.
+Cc Konstantin, the maintainer.
Garbage in what sense? I would be happy to amend with a little more information.
The changes to failsafe and rte_net were from previous reviews from Konstantin:
https://mails.dpdk.org/archives/dev/2018-June/106023.html
https://mails.dpdk.org/archives/dev/2018-July/108701.html
Best,
Cody
Quoted 40 lines · Thomas Monjalon
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 12 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.
28/10/2018 21:54, Cody Doucette:
Quoted 41 lines · Thomas Monjalon
Quoted 32 lines
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 12 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Quoted 4 lines
Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little more information.
Quoted 6 lines
The changes to failsafe and
rte_netwere from previous reviews from Konstantin:
After a better look, the change in rte_port is fine.
But the changes in failsafe and rte_net would be better in their own patch. You can have 3 patches in a patchset (with a cover letter to explain the global idea).
Then, failsafe and rte_net changes must be reviewed by their maintainers.
Thanks
Hi Thomas,
Quoted 56 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Sunday, October 28, 2018 9:19 PM
To: Cody Doucette <[email protected]>
Cc: [email protected]; Gaetan Rivet <[email protected]>; Ananyev, Konstantin <[email protected]>; Olivier Matz <[email protected]>; Dumitrescu, Cristian <[email protected]>; Michel Machado <[email protected]>; Fu, Qiaobin <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v3]ip_frag: extendrte_ipv6_frag_get_ipv6_fragment_header()28/10/2018 21:54, Cody Doucette:
Quoted 46 lines · Thomas Monjalon
Quoted 32 lines
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 12 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Quoted 4 lines
Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little more information.
The changes to failsafe and
rte_netwere from previous reviews from Konstantin:
Quoted 9 lines
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in their own patch. You can have 3 patches in a patchset (with a cover letter to explain the global idea).
Then, failsafe andrte_netchanges must be reviewed by their maintainers.
The patch looks good to me.
About failsafe changes - the reason for that was that failsafe driver didn't build properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.html
Konstantin
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 60 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 47 lines
28/10/2018 21:54, Cody Doucette:
Quoted 46 lines · Thomas Monjalon
Quoted 32 lines
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 12 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38 +++++++++++++++++++++ lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Quoted 4 lines
Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little more information.
The changes to failsafe and
rte_netwere from previous reviews from Konstantin:Quoted 9 lines
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in their own patch. You can have 3 patches in a patchset (with a cover letter to explain the global idea).
Then, failsafe andrte_netchanges must be reviewed by their maintainers.
Quoted 5 lines
The patch looks good to me.
About failsafe changes - the reason for that was that failsafe driver didn't build properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.html
OK. Please send the failsafe patch as the first of the series. Thanks
OK, I will send three separate patches plus a cover letter.
I seem to be having trouble with checkpatch complaining that new symbols are not inserted into the EXPERIMENTAL section of the .map file:
ERROR: symbol break is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol const is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol &frag_hdr_buf) is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol frag_hdr is being removed, ensure that it has gone through the deprecation process
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol offset, is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol offset is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol sizeof(*frag_hdr), is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol size_t is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol struct is being removed, ensure that it has gone through the deprecation process
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol uint8_t is added in a section other than the EXPERIMENTAL section of the version map
Even when moving the new symbol into the EXPERIMENTAL version and recreating the patch, checkpatch still issues the same errors.
Can I leave the .map file as it is in v3? If not, any suggestions on what checkpatch is looking for me to do here?
Cody
Quoted 78 lines · Thomas Monjalon
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 5 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 2 lines
28/10/2018 21:54, Cody Doucette:
Quoted 1 line
On Sun, Oct 28, 2018 at 6:22 AM Thomas Monjalon <[email protected]>
Quoted 22 lines · wrote:
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 3 lines
v2:
* Moved IPv6 extension header definitions tolib_net.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38+++++++++++++++++++++
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 8 lines
Quoted 3 lines
lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little more information.
The changes to failsafe and
rte_netwere from previous reviews from Konstantin:Quoted 7 lines
Quoted 7 lines
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in their ownpatch.
Quoted 1 line
Quoted 1 line
You can have 3 patches in a patchset (with a cover letter to explain
the
Quoted 2 lines
Quoted 2 lines
global idea).
Then, failsafe andrte_netchanges must be reviewed by theirmaintainers.
Quoted 4 lines
Quoted 1 line
The patch looks good to me.
About failsafe changes - the reason for that was that failsafe driverdidn't build
Quoted 3 lines
properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.htmlOK. Please send the failsafe patch as the first of the series. Thanks
30/10/2018 19:09, Cody Doucette:
Quoted 38 lines
OK, I will send three separate patches plus a cover letter.
I seem to be having trouble with checkpatch complaining that new symbols are not inserted into the EXPERIMENTAL section of the .map file:
ERROR: symbol break is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol const is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol&frag_hdr_buf) is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbolfrag_hdris being removed, ensure that it has gone through the deprecation process
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol offset, is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol offset is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbolsizeof(*frag_hdr), is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbolsize_tis added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol struct is being removed, ensure that it has gone through the deprecation process
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symboluint8_tis added in a section other than the EXPERIMENTAL section of the version map
Quoted 5 lines
Even when moving the new symbol into the EXPERIMENTAL version and recreating the patch, checkpatch still issues the same errors.
Can I leave the .map file as it is in v3? If not, any suggestions on what checkpatch is looking for me to do here?
Don't worry, it is a bug in the script.
+Cc Neil who already looked at this issue.
Quoted 82 lines
Quoted 78 lines · Thomas Monjalon
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 5 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 2 lines
28/10/2018 21:54, Cody Doucette:
Quoted 1 line
On Sun, Oct 28, 2018 at 6:22 AM Thomas Monjalon <[email protected]>
Quoted 22 lines · wrote:
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 3 lines
v2:
* Moved IPv6 extension header definitions tolib_net.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38+++++++++++++++++++++
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 8 lines
Quoted 3 lines
lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little more information.
The changes to failsafe and
rte_netwere from previous reviews from Konstantin:Quoted 7 lines
Quoted 7 lines
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in their ownpatch.
Quoted 1 line
Quoted 1 line
You can have 3 patches in a patchset (with a cover letter to explain
the
Quoted 2 lines
Quoted 2 lines
global idea).
Then, failsafe andrte_netchanges must be reviewed by theirmaintainers.
Quoted 4 lines
Quoted 1 line
The patch looks good to me.
About failsafe changes - the reason for that was that failsafe driverdidn't build
Quoted 3 lines
properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.htmlOK. Please send the failsafe patch as the first of the series. Thanks
Quoted 39 lines · Thomas Monjalon
30/10/2018 19:09, Cody Doucette:
Quoted 38 lines
OK, I will send three separate patches plus a cover letter.
I seem to be having trouble with checkpatch complaining that new symbols are not inserted into the EXPERIMENTAL section of the .map file:
ERROR: symbol break is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol const is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol&frag_hdr_buf) is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbolfrag_hdris being removed, ensure that it has gone through the deprecation process
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol offset, is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol offset is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbolsizeof(*frag_hdr), is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbolsize_tis added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol struct is being removed, ensure that it has gone through the deprecation process
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symboluint8_tis added in a section other than the EXPERIMENTAL section of the version map
Quoted 9 lines
Quoted 5 lines
Even when moving the new symbol into the EXPERIMENTAL version and recreating the patch, checkpatch still issues the same errors.
Can I leave the .map file as it is in v3? If not, any suggestions on what checkpatch is looking for me to do here?
Don't worry, it is a bug in the script.
+Cc Neil who already looked at this issue.
I need to look at the submitted patch to confirm, which I don't have time to do at this moment, but my first though is that yes, this is fixed by recent commit 49bcce138374458d1edd1c50d8e5726959108ef4. Can you try applying and building to the current head and see if the issue is resolved?
Neil
Quoted 89 lines
Quoted 83 lines
Quoted 78 lines · Thomas Monjalon
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 5 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 2 lines
28/10/2018 21:54, Cody Doucette:
Quoted 1 line
On Sun, Oct 28, 2018 at 6:22 AM Thomas Monjalon <[email protected]>
Quoted 22 lines · wrote:
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
27/07/2018 15:52, Cody Doucette:
Quoted 7 lines
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skip over any other IPv6 extension headers when finding the fragment header.According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended.
Quoted 7 lines
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 3 lines
v2:
* Moved IPv6 extension header definitions tolib_net.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23 ++++++------- lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38+++++++++++++++++++++
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 8 lines
Quoted 3 lines
lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27 +++++++++++++++ lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little more information.
The changes to failsafe and
rte_netwere from previous reviews from Konstantin:Quoted 7 lines
Quoted 7 lines
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in their ownpatch.
Quoted 1 line
Quoted 1 line
You can have 3 patches in a patchset (with a cover letter to explain
the
Quoted 2 lines
Quoted 2 lines
global idea).
Then, failsafe andrte_netchanges must be reviewed by theirmaintainers.
Quoted 4 lines
Quoted 1 line
The patch looks good to me.
About failsafe changes - the reason for that was that failsafe driverdidn't build
Quoted 3 lines
properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.htmlOK. Please send the failsafe patch as the first of the series. Thanks
Thanks for the suggestion. It looks like 49bcce138374458d1edd1c50d8e5726959108ef4 is already in my tree. I tried applying and checking again anyway and it seems that the error is still present.
Quoted 162 lines · Neil Horman
Quoted 4 lines · Thomas Monjalon
30/10/2018 19:09, Cody Doucette:
Quoted 3 lines
OK, I will send three separate patches plus a cover letter.
I seem to be having trouble with checkpatch complaining that new
symbols
Quoted 35 lines
Quoted 35 lines
are not inserted into the EXPERIMENTAL section of the .map file:
ERROR: symbol break is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol const is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol&frag_hdr_buf) is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbolfrag_hdris being removed, ensure that it has gone through the deprecation process
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol offset, is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol offset is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbolsizeof(*frag_hdr), is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbolsize_tis added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol struct is being removed, ensure that it has gone through the deprecation process
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symboluint8_tis added in a section other than the EXPERIMENTAL section of the version mapQuoted 4 lines
Quoted 4 lines
Even when moving the new symbol into the EXPERIMENTAL version and recreating the patch, checkpatch still issues the same errors.
Can I leave the .map file as it is in v3? If not, any suggestions on
what
Quoted 5 lines
Quoted 1 line
checkpatch is looking for me to do here?
Don't worry, it is a bug in the script.
+Cc Neil who already looked at this issue.I need to look at the submitted patch to confirm, which I don't have time to do
at this moment, but my first though is that yes, this is fixed by recent commit49bcce138374458d1edd1c50d8e5726959108ef4. Can you try applying and building to
the current head and see if the issue is resolved?Neil
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines · Thomas Monjalon
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 5 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 2 lines
28/10/2018 21:54, Cody Doucette:
Quoted 1 line
On Sun, Oct 28, 2018 at 6:22 AM Thomas Monjalon <
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
27/07/2018 15:52, Cody Doucette:
Quoted 1 line
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skipover any
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
other IPv6 extension headers when finding the fragment
header.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other
extension
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 9 lines
header, even though it is recommended.
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23++++++-------
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38+++++++++++++++++++++
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27+++++++++++++++
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little
more
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
information.
The changes to failsafe and
rte_netwere from previous reviewsfrom
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines
Konstantin:
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in theirown
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
patch.
Quoted 1 line
Quoted 1 line
You can have 3 patches in a patchset (with a cover letter to
explain
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
the
Quoted 2 lines
Quoted 2 lines
global idea).
Then, failsafe andrte_netchanges must be reviewed by theirmaintainers.
Quoted 4 lines
Quoted 1 line
The patch looks good to me.
About failsafe changes - the reason for that was that failsafedriver
Quoted 17 lines
Quoted 11 lines
Quoted 10 lines
didn't build
Quoted 3 lines
properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.htmlOK. Please send the failsafe patch as the first of the series. Thanks
Quoted 5 lines · Cody Doucette
Thanks for the suggestion. It looks like
49bcce138374458d1edd1c50d8e5726959108ef4is already in my tree. I tried applying and checking again anyway and it seems that the error is still present.
Thats not a commit in the upstream tree, I've no idea what patch you are referring to
Neil
Quoted 164 lines · Neil Horman
Quoted 163 lines · Thomas Monjalon
Quoted 4 lines
30/10/2018 19:09, Cody Doucette:
Quoted 3 lines
OK, I will send three separate patches plus a cover letter.
I seem to be having trouble with checkpatch complaining that new
symbols
Quoted 35 lines
Quoted 35 lines
are not inserted into the EXPERIMENTAL section of the .map file:
ERROR: symbol break is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol const is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol&frag_hdr_buf) is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbolfrag_hdris being removed, ensure that it has gone through the deprecation process
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol offset, is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol offset is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbolsizeof(*frag_hdr), is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbolsize_tis added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol struct is being removed, ensure that it has gone through the deprecation process
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symboluint8_tis added in a section other than the EXPERIMENTAL section of the version mapQuoted 4 lines
Quoted 4 lines
Even when moving the new symbol into the EXPERIMENTAL version and recreating the patch, checkpatch still issues the same errors.
Can I leave the .map file as it is in v3? If not, any suggestions on
what
Quoted 5 lines
Quoted 1 line
checkpatch is looking for me to do here?
Don't worry, it is a bug in the script.
+Cc Neil who already looked at this issue.I need to look at the submitted patch to confirm, which I don't have time to do
at this moment, but my first though is that yes, this is fixed by recent commit49bcce138374458d1edd1c50d8e5726959108ef4. Can you try applying and building to
the current head and see if the issue is resolved?Neil
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines · Thomas Monjalon
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 5 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 2 lines
28/10/2018 21:54, Cody Doucette:
Quoted 1 line
On Sun, Oct 28, 2018 at 6:22 AM Thomas Monjalon <
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
27/07/2018 15:52, Cody Doucette:
Quoted 1 line
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skipover any
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
other IPv6 extension headers when finding the fragment
header.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other
extension
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 9 lines
header, even though it is recommended.
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23++++++-------
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38+++++++++++++++++++++
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27+++++++++++++++
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little
more
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
information.
The changes to failsafe and
rte_netwere from previous reviewsfrom
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines
Konstantin:
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in theirown
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
patch.
Quoted 1 line
Quoted 1 line
You can have 3 patches in a patchset (with a cover letter to
explain
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
the
Quoted 2 lines
Quoted 2 lines
global idea).
Then, failsafe andrte_netchanges must be reviewed by theirmaintainers.
Quoted 4 lines
Quoted 1 line
The patch looks good to me.
About failsafe changes - the reason for that was that failsafedriver
Quoted 17 lines
Quoted 11 lines
Quoted 10 lines
didn't build
Quoted 3 lines
properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.htmlOK. Please send the failsafe patch as the first of the series. Thanks
31/10/2018 16:03, Neil Horman:
Quoted 7 lines · Cody Doucette
Quoted 5 lines
Thanks for the suggestion. It looks like
49bcce138374458d1edd1c50d8e5726959108ef4is already in my tree. I tried applying and checking again anyway and it seems that the error is still present.Thats not a commit in the upstream tree, I've no idea what patch you are referring to
Yes it is in the tree, in 18.11-rc1.
Quoted 165 lines
Quoted 164 lines · Neil Horman
Quoted 163 lines · Thomas Monjalon
Quoted 4 lines
30/10/2018 19:09, Cody Doucette:
Quoted 3 lines
OK, I will send three separate patches plus a cover letter.
I seem to be having trouble with checkpatch complaining that new
symbols
Quoted 35 lines
Quoted 35 lines
are not inserted into the EXPERIMENTAL section of the .map file:
ERROR: symbol break is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol const is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol&frag_hdr_buf) is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbolfrag_hdris being removed, ensure that it has gone through the deprecation process
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbol offset, is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol offset is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol return is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol is added but patch has insuficient context to determine the section name please ensure the version is EXPERIMENTAL
ERROR: symbolsizeof(*frag_hdr), is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbolsize_tis added in a section other than the EXPERIMENTAL section of the version map
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
INFO: symbol struct is being removed, ensure that it has gone through the deprecation process
ERROR: symbol struct is added in a section other than the EXPERIMENTAL section of the version map
ERROR: symboluint8_tis added in a section other than the EXPERIMENTAL section of the version mapQuoted 4 lines
Quoted 4 lines
Even when moving the new symbol into the EXPERIMENTAL version and recreating the patch, checkpatch still issues the same errors.
Can I leave the .map file as it is in v3? If not, any suggestions on
what
Quoted 5 lines
Quoted 1 line
checkpatch is looking for me to do here?
Don't worry, it is a bug in the script.
+Cc Neil who already looked at this issue.I need to look at the submitted patch to confirm, which I don't have time to do
at this moment, but my first though is that yes, this is fixed by recent commit49bcce138374458d1edd1c50d8e5726959108ef4. Can you try applying and building to
the current head and see if the issue is resolved?Neil
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines · Thomas Monjalon
30/10/2018 10:46, Ananyev, Konstantin:
Quoted 5 lines
Hi Thomas,
From: Thomas Monjalon [mailto:[email protected]]
Quoted 2 lines
28/10/2018 21:54, Cody Doucette:
Quoted 1 line
On Sun, Oct 28, 2018 at 6:22 AM Thomas Monjalon <
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
27/07/2018 15:52, Cody Doucette:
Quoted 1 line
Extend
rte_ipv6_frag_get_ipv6_fragment_header()to skipover any
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
other IPv6 extension headers when finding the fragment
header.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other
extension
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 9 lines
header, even though it is recommended.
Signed-off-by Cody Doucette <[email protected]>Signed-off-by Qiaobin Fu <[email protected]>Reviewed-by Michel Machado <[email protected]>---
v3:
* Removed compilation flag D_XOPEN_SOURCE=700 from the failsafe driver to allow compilation on freebsd.How failsafe is related to
ip_frag?Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
v2:
* Moved IPv6 extension header definitions tolib_net.drivers/net/failsafe/Makefile | 1 - drivers/net/failsafe/meson.build | 1 - examples/ip_reassembly/main.c | 6 ++-- lib/librte_ip_frag/rte_ip_frag.h | 23++++++-------
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
lib/librte_ip_frag/rte_ip_frag_version.map | 1 + lib/librte_ip_frag/rte_ipv6_fragmentation.c | 38+++++++++++++++++++++
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
lib/librte_ip_frag/rte_ipv6_reassembly.c | 4 +-- lib/librte_net/rte_ip.h | 27+++++++++++++++
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
lib/librte_port/rte_port_ras.c | 6 ++--Changes in failsafe,
rte_netandrte_portlook like garbage.Anyway, the
ip_fragpart requires some review.
+Cc Konstantin, the maintainer.Garbage in what sense? I would be happy to amend with a little
more
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
information.
The changes to failsafe and
rte_netwere from previous reviewsfrom
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines
Konstantin:
After a better look, the change in
rte_portis fine.But the changes in failsafe and
rte_netwould be better in theirown
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
patch.
Quoted 1 line
Quoted 1 line
You can have 3 patches in a patchset (with a cover letter to
explain
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
the
Quoted 2 lines
Quoted 2 lines
global idea).
Then, failsafe andrte_netchanges must be reviewed by theirmaintainers.
Quoted 4 lines
Quoted 1 line
The patch looks good to me.
About failsafe changes - the reason for that was that failsafedriver
Quoted 17 lines
Quoted 11 lines
Quoted 10 lines
didn't build
Quoted 3 lines
properly with the proposed changes.
Gaetan was ok to remove that extra compiler flag:
https://mails.dpdk.org/archives/dev/2018-July/108826.htmlOK. Please send the failsafe patch as the first of the series. Thanks
Quoted 11 lines · Thomas Monjalon
31/10/2018 16:03, Neil Horman:
Quoted 7 lines · Cody Doucette
Quoted 5 lines
Thanks for the suggestion. It looks like
49bcce138374458d1edd1c50d8e5726959108ef4is already in my tree. I tried applying and checking again anyway and it seems that the error is still present.Thats not a commit in the upstream tree, I've no idea what patch you are referring to
Yes it is in the tree, in 18.11-rc1.
Got it now, thanks.
So this actually looks to be a new bug, and I'm not sure how it got in there. The awk match to close the in_map section isn't triggering on this patch set, which is very odd, as Its been working. The match is ^(map) which should be ok (allbeit perl regex syntax), which I thought awk supported. That said, it certainly doesn't seem to be matching now.
I've got a patch posted to you which replaces this with a traditional character class match [^map], and thats working with this patch set.
Neil
01/11/2018 14:53, Neil Horman:
Quoted 12 lines · Thomas Monjalon
Quoted 11 lines
31/10/2018 16:03, Neil Horman:
Quoted 7 lines · Cody Doucette
Quoted 5 lines
Thanks for the suggestion. It looks like
49bcce138374458d1edd1c50d8e5726959108ef4is already in my tree. I tried applying and checking again anyway and it seems that the error is still present.Thats not a commit in the upstream tree, I've no idea what patch you are referring to
Yes it is in the tree, in 18.11-rc1.
Quoted 7 lines
Got it now, thanks.
So this actually looks to be a new bug, and I'm not sure how it got in there. The awk match to close the
in_mapsection isn't triggering on this patch set, which is very odd, as Its been working. The match is ^(map) which should be ok (allbeit perl regex syntax), which I thought awk supported. That said, it certainly doesn't seem to be matching now.
All these regex things are painful sometimes :)
Quoted 2 lines
I've got a patch posted to you which replaces this with a traditional character class match [^map], and thats working with this patch set.
OK, I'll check it, thanks.