linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: Fix malformed table in gadget-testing.rst
@ 2024-01-28 19:57 Kohshi Yamaguchi
  2024-01-29  2:59 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Kohshi Yamaguchi @ 2024-01-28 19:57 UTC (permalink / raw)
  To: gregkh, corbet
  Cc: Kohshi Yamaguchi, linux-usb, linux-doc, linux-kernel, skhan

The table describing the NCM function attributes in gadget-testing.rst
was malformed, causing Sphinx build warnings. This patch fixes the table
format to align with the reStructuredText specifications.

The border lines of the table were not properly aligned with the column
headers, which was corrected by adjusting the border line lengths to
match the headers.

Signed-off-by: Kohshi Yamaguchi <kohshi54.yam@gmail.com>
---
 Documentation/usb/gadget-testing.rst | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/Documentation/usb/gadget-testing.rst b/Documentation/usb/gadget-testing.rst
index 8cd62c466d20..1d1737f246df 100644
--- a/Documentation/usb/gadget-testing.rst
+++ b/Documentation/usb/gadget-testing.rst
@@ -448,17 +448,17 @@ Function-specific configfs interface
 The function name to use when creating the function directory is "ncm".
 The NCM function provides these attributes in its function directory:
 
-	===============   ==================================================
-	ifname		  network device interface name associated with this
-			  function instance
-	qmult		  queue length multiplier for high and super speed
-	host_addr	  MAC address of host's end of this
-			  Ethernet over USB link
-	dev_addr	  MAC address of device's end of this
-			  Ethernet over USB link
-	max_segment_size  Segment size required for P2P connections. This
-			  will set MTU to (max_segment_size - 14 bytes)
-	===============   ==================================================
+	================   ==================================================
+	ifname		   network device interface name associated with this
+			   function instance
+	qmult		   queue length multiplier for high and super speed
+	host_addr	   MAC address of host's end of this
+			   Ethernet over USB link
+	dev_addr	   MAC address of device's end of this
+			   Ethernet over USB link
+	max_segment_size   Segment size required for P2P connections. This
+			   will set MTU to (max_segment_size - 14 bytes)
+	================   ==================================================
 
 and after creating the functions/ncm.<instance name> they contain default
 values: qmult is 5, dev_addr and host_addr are randomly selected.
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc: Fix malformed table in gadget-testing.rst
  2024-01-28 19:57 [PATCH] doc: Fix malformed table in gadget-testing.rst Kohshi Yamaguchi
@ 2024-01-29  2:59 ` Randy Dunlap
  2024-01-29  7:50   ` Kohshi Yamaguchi
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2024-01-29  2:59 UTC (permalink / raw)
  To: Kohshi Yamaguchi, gregkh, corbet
  Cc: linux-usb, linux-doc, linux-kernel, skhan

Hi,

On 1/28/24 11:57, Kohshi Yamaguchi wrote:
> The table describing the NCM function attributes in gadget-testing.rst
> was malformed, causing Sphinx build warnings. This patch fixes the table
> format to align with the reStructuredText specifications.
> 
> The border lines of the table were not properly aligned with the column
> headers, which was corrected by adjusting the border line lengths to
> match the headers.
> 
> Signed-off-by: Kohshi Yamaguchi <kohshi54.yam@gmail.com>
> ---
>  Documentation/usb/gadget-testing.rst | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/Documentation/usb/gadget-testing.rst b/Documentation/usb/gadget-testing.rst
> index 8cd62c466d20..1d1737f246df 100644
> --- a/Documentation/usb/gadget-testing.rst
> +++ b/Documentation/usb/gadget-testing.rst
> @@ -448,17 +448,17 @@ Function-specific configfs interface
>  The function name to use when creating the function directory is "ncm".
>  The NCM function provides these attributes in its function directory:
>  
> -	===============   ==================================================
> -	ifname		  network device interface name associated with this
> -			  function instance
> -	qmult		  queue length multiplier for high and super speed
> -	host_addr	  MAC address of host's end of this
> -			  Ethernet over USB link
> -	dev_addr	  MAC address of device's end of this
> -			  Ethernet over USB link
> -	max_segment_size  Segment size required for P2P connections. This
> -			  will set MTU to (max_segment_size - 14 bytes)
> -	===============   ==================================================
> +	================   ==================================================
> +	ifname		   network device interface name associated with this
> +			   function instance
> +	qmult		   queue length multiplier for high and super speed
> +	host_addr	   MAC address of host's end of this
> +			   Ethernet over USB link
> +	dev_addr	   MAC address of device's end of this
> +			   Ethernet over USB link
> +	max_segment_size   Segment size required for P2P connections. This
> +			   will set MTU to (max_segment_size - 14 bytes)
> +	================   ==================================================
>  
>  and after creating the functions/ncm.<instance name> they contain default
>  values: qmult is 5, dev_addr and host_addr are randomly selected.

or like this:

https://lore.kernel.org/lkml/20240128045347.25909-1-rdunlap@infradead.org/

Thanks.
-- 
#Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc: Fix malformed table in gadget-testing.rst
  2024-01-29  2:59 ` Randy Dunlap
@ 2024-01-29  7:50   ` Kohshi Yamaguchi
  0 siblings, 0 replies; 3+ messages in thread
From: Kohshi Yamaguchi @ 2024-01-29  7:50 UTC (permalink / raw)
  To: rdunlap; +Cc: corbet, gregkh, linux-doc, linux-kernel, linux-usb, skhan

Hi Randy,

Thank you for reviewing my patch and pointing out the similar change you posted.
I appreciate your feedback.

Best regards,
--
Kohshi Yamaguchi


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-29  7:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28 19:57 [PATCH] doc: Fix malformed table in gadget-testing.rst Kohshi Yamaguchi
2024-01-29  2:59 ` Randy Dunlap
2024-01-29  7:50   ` Kohshi Yamaguchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).