@@ -54,7 +54,7 @@ it will use an allocated socket buffer as usual and the contents will be
5454 copied to the ring on transmission, nullifying most of the performance gains.
5555Dumps of kernel databases automatically support memory mapped I/O.
5656
57- Conversion of the transmit path involves changing message contruction to
57+ Conversion of the transmit path involves changing message construction to
5858use memory from the TX ring instead of (usually) a buffer declared on the
5959stack and setting up the frame header approriately. Optionally poll() can
6060be used to wait for free frames in the TX ring.
@@ -65,8 +65,8 @@ Structured and definitions for using memory mapped I/O are contained in
6565RX and TX rings
6666----------------
6767
68- Each ring contains a number of continous memory blocks, containing frames of
69- fixed size dependant on the parameters used for ring setup.
68+ Each ring contains a number of continuous memory blocks, containing frames of
69+ fixed size dependent on the parameters used for ring setup.
7070
7171Ring: [ block 0 ]
7272 [ frame 0 ]
@@ -80,7 +80,7 @@ Ring: [ block 0 ]
8080 [ frame 2 * n + 1 ]
8181
8282The blocks are only visible to the kernel, from the point of view of user-space
83- the ring just contains the frames in a continous memory zone.
83+ the ring just contains the frames in a continuous memory zone.
8484
8585The ring parameters used for setting up the ring are defined as follows:
8686
@@ -91,7 +91,7 @@ struct nl_mmap_req {
9191 unsigned int nm_frame_nr;
9292};
9393
94- Frames are grouped into blocks, where each block is a continous region of memory
94+ Frames are grouped into blocks, where each block is a continuous region of memory
9595and holds nm_block_size / nm_frame_size frames. The total number of frames in
9696the ring is nm_frame_nr. The following invariants hold:
9797
@@ -113,8 +113,8 @@ Some parameters are constrained, specifically:
113113
114114- nm_frame_nr must equal the actual number of frames as specified above.
115115
116- When the kernel can't allocate phsyically continous memory for a ring block,
117- it will fall back to use physically discontinous memory. This might affect
116+ When the kernel can't allocate phsyically continuous memory for a ring block,
117+ it will fall back to use physically discontinuous memory. This might affect
118118performance negatively, in order to avoid this the nm_frame_size parameter
119119should be chosen to be as small as possible for the required frame size and
120120the number of blocks should be increased instead.
0 commit comments