linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch] socket.7: document SO_INCOMING_NAPI_ID
       [not found] <1603847722-29024-1-git-send-email-sridhar.samudrala@intel.com>
@ 2020-10-28  6:13 ` Michael Kerrisk (man-pages)
  2020-10-28  6:15   ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-10-28  6:13 UTC (permalink / raw)
  To: Sridhar Samudrala, linux-man, netdev; +Cc: mtk.manpages

On 10/28/20 2:15 AM, Sridhar Samudrala wrote:
> Add documentation for SO_INCOMING_NAPI_ID in socket.7 man page.

Hello Sridhar,

Thank you!

Would it be possible for you to resubmit the patch, with a commit
message that says how you obtained or verified the information.
This info is useful for review, but also for understand changes
when people look at the history in the future.

Also, please start new sentences on new lines (so-called
semantic newlines).

Thanks,

Michael

> Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
> ---
>  man7/socket.7 | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/man7/socket.7 b/man7/socket.7
> index 850d3162f..1f38273e9 100644
> --- a/man7/socket.7
> +++ b/man7/socket.7
> @@ -519,6 +519,18 @@ This provides optimal NUMA behavior and keeps CPU caches hot.
>  .\" SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
>  .\" SO_INCOMING_CPU setting.
>  .TP
> +.BR SO_INCOMING_NAPI_ID " (gettable since Linux 4.12)"
> +.\" getsockopt 6d4339028b350efbf87c61e6d9e113e5373545c9
> +Returns a system level unique ID called NAPI ID that is associated with a RX
> +queue on which the last packet associated with that socket is received.
> +.IP
> +This can be used by an application to split the incoming flows among worker
> +threads based on the RX queue on which the packets associated with the flows
> +are received. It allows each worker thread to be associated with a NIC HW
> +receive queue and service all the connection requests received on that RX
> +queue. This mapping between a app thread and a HW NIC queue streamlines the
> +flow of data from the NIC to the application.
> +.TP
>  .B SO_KEEPALIVE
>  Enable sending of keep-alive messages on connection-oriented sockets.
>  Expects an integer boolean flag.
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

* Re: [patch] socket.7: document SO_INCOMING_NAPI_ID
  2020-10-28  6:13 ` [patch] socket.7: document SO_INCOMING_NAPI_ID Michael Kerrisk (man-pages)
@ 2020-10-28  6:15   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-10-28  6:15 UTC (permalink / raw)
  To: Sridhar Samudrala, linux-man, netdev; +Cc: mtk.manpages

On 10/28/20 7:13 AM, Michael Kerrisk (man-pages) wrote:
> On 10/28/20 2:15 AM, Sridhar Samudrala wrote:
>> Add documentation for SO_INCOMING_NAPI_ID in socket.7 man page.
> 
> Hello Sridhar,
> 
> Thank you!
> 
> Would it be possible for you to resubmit the patch, with a commit
> message that says how you obtained or verified the information.
> This info is useful for review, but also for understand changes
> when people look at the history in the future.

D'oh! One thing I should have checked before I hit send, I guess:

[[
commit 6d4339028b350efbf87c61e6d9e113e5373545c9
Author: Sridhar Samudrala <sridhar.samudrala@intel.com>
Date:   Fri Mar 24 10:08:36 2017 -0700

    net: Introduce SO_INCOMING_NAPI_ID
]]

But, it helps if you tell me that in the accompanying mail
message.

Thanks again for the patch. I';ll apply and fix the newlines.

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, other threads:[~2020-10-28 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1603847722-29024-1-git-send-email-sridhar.samudrala@intel.com>
2020-10-28  6:13 ` [patch] socket.7: document SO_INCOMING_NAPI_ID Michael Kerrisk (man-pages)
2020-10-28  6:15   ` Michael Kerrisk (man-pages)

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).