[ovs-dev] [PATCH] Documentation: Fix binary representation of 80 and 8080 in Faucet tutorial

axel at tripier.fr axel at tripier.fr
Thu Apr 26 13:39:02 UTC 2018


The binary representation of 80 and 8080 are switched in the Faucet 
tutorial.

Signed-off-by: Axel Tripier <axel at tripier.fr>
---
  Documentation/tutorials/faucet.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/tutorials/faucet.rst 
b/Documentation/tutorials/faucet.rst
index 9abfa6ebd..aaaffe769 100644
--- a/Documentation/tutorials/faucet.rst
+++ b/Documentation/tutorials/faucet.rst
@@ -1383,8 +1383,8 @@ Take a look at the Megaflow line and in particular 
the match on
  the megaflow matches on only the top 4 bits of the TCP destination
  port.  That works because::

-    80 (base 10) == 0001,1111,1001,0000 (base 2)
-  8080 (base 10) == 0000,0000,0101,0000 (base 2)
+    80 (base 10) == 0000,0000,0101,0000 (base 2)
+  8080 (base 10) == 0001,1111,1001,0000 (base 2)

  and so by matching on only the top 4 bits, rather than all 16, the OVS
  fast path can distinguish port 80 from port 8080.  This allows this
-- 
2.17.0


More information about the dev mailing list