From 9f4b0b744323024b2aac76a1d17e146de97b43ae Mon Sep 17 00:00:00 2001 From: Joyce Kong Date: Fri, 12 Nov 2021 00:37:03 -0600 Subject: [PATCH] examples/flow_filtering: enhance code snippet readability 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") Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang Reviewed-by: Conor Walsh --- doc/guides/sample_app_ug/flow_filtering.rst | 2 +- examples/flow_filtering/flow_blocks.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/sample_app_ug/flow_filtering.rst b/doc/guides/sample_app_ug/flow_filtering.rst index 11da9148ca..8cac2f8a8f 100644 --- a/doc/guides/sample_app_ug/flow_filtering.rst +++ b/doc/guides/sample_app_ug/flow_filtering.rst @@ -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 diff --git a/examples/flow_filtering/flow_blocks.c b/examples/flow_filtering/flow_blocks.c index 3251ed9f8f..f368e6124d 100644 --- a/examples/flow_filtering/flow_blocks.c +++ b/examples/flow_filtering/flow_blocks.c @@ -75,7 +75,7 @@ generate_ipv4_flow(uint16_t port_id, uint16_t rx_q, * ipv4 we set this level to allow all. */ - /* 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. */ -- 2.39.5