netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation: Update Phonet doc for Pipe controller changes
@ 2010-10-13  6:17 Kumar A Sanghvi
  2010-10-13  7:19 ` Rémi Denis-Courmont
  0 siblings, 1 reply; 3+ messages in thread
From: Kumar A Sanghvi @ 2010-10-13  6:17 UTC (permalink / raw)
  To: remi.denis-courmont, davem, netdev
  Cc: linus.walleij, gulshan.karmani, sudeep.divakaran, Kumar Sanghvi

From: Kumar Sanghvi <kumar.sanghvi@stericsson.com>

Updates to Phonet doc for Pipe controller 'connect' socket
implementation and changes related to socket options.

Signed-off-by: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
---
 Documentation/networking/phonet.txt |   32 ++++++++++++++------------------
 1 files changed, 14 insertions(+), 18 deletions(-)

diff --git a/Documentation/networking/phonet.txt b/Documentation/networking/phonet.txt
index 2d9bc2b..24ad2ad 100644
--- a/Documentation/networking/phonet.txt
+++ b/Documentation/networking/phonet.txt
@@ -199,33 +199,29 @@ between itself and a remote pipe-end point (e.g. modem).
 
 The implementation adds socket options at SOL_PNPIPE level:
 
- PNPIPE_CREATE
-	It accepts an integer argument where-in
-		lower order 16 bits: pn_dev and pn_port pair for remote pep.
-		higher order 16 bits: 8 bit pipe-handle
-
-	It sends a PNS_PEP_CONNECT_REQ on sequenced socket itself. On getting
-	PNS_PEP_CONNECT_RESP, it sends PNS_PEP_CONNECT_REQ to remote pep. On
-	getting response from remote pep, it selects the best possible Flow
-	control mechanism supported by remote-pep (modem) and then it sends
-	PNS_PEP_CREATED_IND to the sequenced socket and to the remote pep.
-
-	It then updates the pipe state associated with the sequenced socket to
-	be PIPE_DISABLED.
+ PNPIPE_PIPE_HANDLE
+	It accepts an integer argument for setting value of pipe handle.
 
   PNPIPE_ENABLE accepts one integer value (int). If set to zero, the pipe
     is disabled. If the value is non-zero, the pipe is enabled. If the pipe
     is not (yet) connected, ENOTCONN is error is returned.
 
-   PNPIPE_DESTROY
-	This will send out PNS_PEP_DISCONNECT_REQ on the sequenced socket and
-	the remote pep.
-	It will also update the pipe state associated with the sequenced socket
-	to PIPE_IDLE
+The implementation also adds socket 'connect'. On calling the 'connect', pipe
+will be created between the source socket and the destination, and the pipe
+state will be set to PIPE_DISABLED.
 
 After a pipe has been created and enabled successfully, the Pipe data can be
 exchanged between the host-pep and remote-pep (modem).
 
+User-space would typically follow below sequence with Pipe controller:-
+-socket
+-bind
+-setsockopt for PNPIPE_PIPE_HANDLE
+-connect
+-setsockopt for PNPIPE_ENCAP_IP
+-setsockopt for PNPIPE_ENABLE
+
+
 Authors
 -------
 
-- 
1.7.2.dirty


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

* Re: [PATCH] Documentation: Update Phonet doc for Pipe controller changes
  2010-10-13  6:17 [PATCH] Documentation: Update Phonet doc for Pipe controller changes Kumar A Sanghvi
@ 2010-10-13  7:19 ` Rémi Denis-Courmont
  2010-10-13 21:41   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Rémi Denis-Courmont @ 2010-10-13  7:19 UTC (permalink / raw)
  To: Kumar A Sanghvi
  Cc: remi.denis-courmont, davem, netdev, linus.walleij,
	gulshan.karmani, sudeep.divakaran




On Wed, 13 Oct 2010 11:47:25 +0530, Kumar A Sanghvi
<kumar.sanghvi@stericsson.com> wrote:
> From: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
> 
> Updates to Phonet doc for Pipe controller 'connect' socket
> implementation and changes related to socket options.
> 
> Signed-off-by: Kumar Sanghvi <kumar.sanghvi@stericsson.com>

Acked-by Rémi Denis-Courmont <remi.denis-courmont@nokia.com>


-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis


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

* Re: [PATCH] Documentation: Update Phonet doc for Pipe controller changes
  2010-10-13  7:19 ` Rémi Denis-Courmont
@ 2010-10-13 21:41   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2010-10-13 21:41 UTC (permalink / raw)
  To: remi
  Cc: kumar.sanghvi, remi.denis-courmont, netdev, linus.walleij,
	gulshan.karmani, sudeep.divakaran

From: Rémi Denis-Courmont <remi@remlab.net>
Date: Wed, 13 Oct 2010 09:19:51 +0200

> 
> 
> 
> On Wed, 13 Oct 2010 11:47:25 +0530, Kumar A Sanghvi
> <kumar.sanghvi@stericsson.com> wrote:
>> From: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
>> 
>> Updates to Phonet doc for Pipe controller 'connect' socket
>> implementation and changes related to socket options.
>> 
>> Signed-off-by: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
> 
> Acked-by Rémi Denis-Courmont <remi.denis-courmont@nokia.com>

Applied.

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

end of thread, other threads:[~2010-10-13 21:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13  6:17 [PATCH] Documentation: Update Phonet doc for Pipe controller changes Kumar A Sanghvi
2010-10-13  7:19 ` Rémi Denis-Courmont
2010-10-13 21:41   ` David Miller

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