From: Joyce Kong <hidden> Date: 2021-11-03 02:41:25
Change the 'IPV4' level to 'ETH' level in the comment
as it was previously misdescribed.
Fixes: 9a212dc06c7a ("doc: use code snippets in sample app guides")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <redacted>
Reviewed-by: Ruifeng Wang <redacted>
---
examples/flow_filtering/flow_blocks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,*ipv4wesetthisleveltoallowall.*/-/* IPv4 we set this level to allow all. 8< */+/* ETH we set this level to allow all. 8< */pattern[0].type=RTE_FLOW_ITEM_TYPE_ETH;/* >8 End of setting the first level of the pattern. */
From: Joyce Kong <redacted>
Sent: Wednesday 3 November 2021 02:41
To: Ori Kam <redacted>; Mcnamara, John
[off-list ref]; Walsh, Conor [off-list ref];
Conor Fogarty [off-list ref]
Cc: dev@dpdk.org; nd@arm.com; stable@dpdk.org
Subject: [PATCH v1] examples/flow_filtering: fix wrong comment
Change the 'IPV4' level to 'ETH' level in the comment
as it was previously misdescribed.
Fixes: 9a212dc06c7a ("doc: use code snippets in sample app guides")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <redacted>
Reviewed-by: Ruifeng Wang <redacted>
---
examples/flow_filtering/flow_blocks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,*ipv4wesetthisleveltoallowall.*/-/* IPv4 we set this level to allow all. 8< */+/* ETH we set this level to allow all. 8< */pattern[0].type=RTE_FLOW_ITEM_TYPE_ETH;/* >8 End of setting the first level of the pattern. */
Hi Joyce,
This can't be applied as is, it will break the docs build as follows:
doc/guides/sample_app_ug/flow_filtering.rst:225: WARNING: start-after pattern not found: IPv4 we set this level to allow all. 8<
The comment is a tag used by the docs to locate a snippet within the code so the corresponding tag must be changed in the docs.
The following must be added to this patch:
@@ -224,7 +224,7 @@ Setting the first level of the pattern ETH:..literalinclude:: ../../../examples/flow_filtering/flow_blocks.c:language: c-:start-after: IPv4 we set this level to allow all. 8<+:start-after: ETH we set this level to allow all. 8<:end-before: >8 End of setting the first level of the pattern.:dedent: 1
From: Joyce Kong <hidden> Date: 2021-11-04 07:32:35
Change the 'IPV4' level to 'ETH' level in the comment
as it was previously misdescribed.
Fixes: 9a212dc06c7a ("doc: use code snippets in sample app guides")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <redacted>
Reviewed-by: Ruifeng Wang <redacted>
---
doc/guides/sample_app_ug/flow_filtering.rst | 2 +-
examples/flow_filtering/flow_blocks.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -224,7 +224,7 @@ Setting the first level of the pattern ETH:..literalinclude:: ../../../examples/flow_filtering/flow_blocks.c:language: c-:start-after: IPv4 we set this level to allow all. 8<+:start-after: ETH we set this level to allow all. 8<:end-before: >8 End of setting the first level of the pattern.:dedent: 1
@@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,*ipv4wesetthisleveltoallowall.*/-/* IPv4 we set this level to allow all. 8< */+/* ETH we set this level to allow all. 8< */pattern[0].type=RTE_FLOW_ITEM_TYPE_ETH;/* >8 End of setting the first level of the pattern. */
@@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,*ipv4wesetthisleveltoallowall.*/-/* IPv4 we set this level to allow all. 8< */+/* ETH we set this level to allow all. 8< */pattern[0].type=RTE_FLOW_ITEM_TYPE_ETH;/* >8 End of setting the first level of the pattern. */
Hi Joyce,
This can't be applied as is, it will break the docs build as follows:
doc/guides/sample_app_ug/flow_filtering.rst:225: WARNING: start-after
pattern not found: IPv4 we set this level to allow all. 8<
The comment is a tag used by the docs to locate a snippet within the code so
the corresponding tag must be changed in the docs.
The following must be added to this patch:
@@ -224,7 +224,7 @@ Setting the first level of the pattern ETH:..literalinclude:: ../../../examples/flow_filtering/flow_blocks.c:language: c-:start-after: IPv4 we set this level to allow all. 8<+:start-after: ETH we set this level to allow all. 8<:end-before: >8 End of setting the first level of the pattern.:dedent: 1
@@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,*ipv4wesetthisleveltoallowall.*/-/* IPv4 we set this level to allow all. 8< */+/* ETH we set this level to allow all. 8< */pattern[0].type=RTE_FLOW_ITEM_TYPE_ETH;/* >8 End of setting the first level of the pattern. */
Hi Joyce,
This can't be applied as is, it will break the docs build as follows:
doc/guides/sample_app_ug/flow_filtering.rst:225: WARNING: start-after
pattern not found: IPv4 we set this level to allow all. 8<
The comment is a tag used by the docs to locate a snippet within the code
so
quoted
the corresponding tag must be changed in the docs.
The following must be added to this patch:
@@ -224,7 +224,7 @@ Setting the first level of the pattern ETH:..literalinclude:: ../../../examples/flow_filtering/flow_blocks.c:language: c-:start-after: IPv4 we set this level to allow all. 8<+:start-after: ETH we set this level to allow all. 8<:end-before: >8 End of setting the first level of the pattern.:dedent: 1
Thanks,
Conor.
Hi Conor, please see V2.
Thanks, Joyce
Hi Joyce,
v2 looks correct to me, I will apply my tag to v2 now.
Thanks,
Conor.
From: Joyce Kong <redacted>
Sent: Thursday 4 November 2021 07:32
To: Ori Kam <redacted>; Mcnamara, John
[off-list ref]; Conor Fogarty [off-list ref];
Walsh, Conor [off-list ref]
Cc: dev@dpdk.org; nd@arm.com; stable@dpdk.org
Subject: [PATCH v2] examples/flow_filtering: fix wrong comment
Change the 'IPV4' level to 'ETH' level in the comment
as it was previously misdescribed.
Fixes: 9a212dc06c7a ("doc: use code snippets in sample app guides")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <redacted>
Reviewed-by: Ruifeng Wang <redacted>
---
From: Joyce Kong <hidden> Date: 2021-11-12 06:37:23
The 'IPv4' in the comment is to mark the code
snippet, while it made some confusion. Then
removing 'IPv4' description will be clearer.
Fixes: 9a212dc06c7a ("doc: use code snippets in sample app guides")
Cc: stable@dpdk.org
Signed-off-by: Joyce Kong <redacted>
Reviewed-by: Ruifeng Wang <redacted>
Reviewed-by: Conor Walsh <redacted>
---
doc/guides/sample_app_ug/flow_filtering.rst | 2 +-
examples/flow_filtering/flow_blocks.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -224,7 +224,7 @@ Setting the first level of the pattern ETH:..literalinclude:: ../../../examples/flow_filtering/flow_blocks.c:language: c-:start-after: IPv4 we set this level to allow all. 8<+:start-after: Set this level to allow all. 8<:end-before: >8 End of setting the first level of the pattern.:dedent: 1
@@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q,*ipv4wesetthisleveltoallowall.*/-/* IPv4 we set this level to allow all. 8< */+/* Set this level to allow all. 8< */pattern[0].type=RTE_FLOW_ITEM_TYPE_ETH;/* >8 End of setting the first level of the pattern. */
From: David Marchand <hidden> Date: 2021-11-16 15:13:49
On Fri, Nov 12, 2021 at 7:37 AM Joyce Kong [off-list ref] wrote:
The 'IPv4' in the comment is to mark the code
snippet, while it made some confusion. Then
removing 'IPv4' description will be clearer.
Fixes: 9a212dc06c7a ("doc: use code snippets in sample app guides")
Cc: stable@dpdk.org
I removed the backport request: it's not fixing a problem, just
enhancing readability of a comment.
Signed-off-by: Joyce Kong <redacted>
Reviewed-by: Ruifeng Wang <redacted>
Reviewed-by: Conor Walsh <redacted>