* where is (if at all) ioctl support for sctp...?
@ 2008-07-21 1:02 leon zadorin
2008-07-21 1:10 ` leon zadorin
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: leon zadorin @ 2008-07-21 1:02 UTC (permalink / raw)
To: linux-sctp
Hi all,
my system is
2.6.23.1-42.fc8 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
as I understand it - it comes with the kernel that is already
sctp-enabled... (in fact I am able to create sctp sockets and
communicate data between them).
I have a question wrt ability of finding the amount of 'free space' in
the SND buffer associated with a givent sctp socket's fd (the actual
buffering strategy [single buffer per association or not] is not
important to me - only the fact that eventually any message written
via an SCTP socket will have to go to some kernel-level buffer - and I
want to know the amount of free space left in such a buffer before
actually writing the message).
Essentially I don't want to wait for 'would block' type of a response
from a written socket as in my deployment scenario it would,
essentially, be too late- I want to begin throttling the data rate
being directed to the outgoing sctp socket based on the amount of free
space available in socket's buffer (the exact reasons are not that
important and will not benefit this discussion).
This is present in TCP protocols with ioctls like SIOCOUTQ.
This is also available in SCTP's implelmentation by OpenSS7 (sctp-0.2.26)...
So just to clear a few things:
1) is linux's default SCTP implementation in 2.6 different from
OpenSS7 implementation?
2) if so - are there any plans to support the aforementioned ioctl?
kind regards
Leon.
^ permalink raw reply [flat|nested] 4+ messages in thread
* where is (if at all) ioctl support for sctp...?
2008-07-21 1:02 where is (if at all) ioctl support for sctp...? leon zadorin
@ 2008-07-21 1:10 ` leon zadorin
2008-07-21 13:19 ` Vlad Yasevich
2008-07-21 14:51 ` leon zadorin
2 siblings, 0 replies; 4+ messages in thread
From: leon zadorin @ 2008-07-21 1:10 UTC (permalink / raw)
To: linux-sctp
Hi all - sorry if this is being re-posted (have sent a message earlier
w/o first subscribing... so would expect the earlier message not to
make through),
... anyhow... my system is
2.6.23.1-42.fc8 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
as I understand it - it comes with the kernel that is already
sctp-enabled... (in fact I am able to create sctp sockets and
communicate data between them).
I have a question wrt ability of finding the amount of 'free space' in
the SND buffer associated with a givent sctp socket's fd (the actual
buffering strategy [single buffer per association or not] is not
important to me - only the fact that eventually any message written
via an SCTP socket will have to go to some kernel-level buffer - and I
want to know the amount of free space left in such a buffer before
actually writing the message).
Essentially I don't want to wait for 'would block' type of a response
from a written socket as in my deployment scenario it would,
essentially, be too late- I want to begin throttling the data rate
being directed to the outgoing sctp socket based on the amount of free
space available in socket's buffer (the exact reasons are not that
important and will not benefit this discussion).
This is present in TCP protocols with ioctls like SIOCOUTQ.
This is also available in SCTP's implelmentation by OpenSS7 (sctp-0.2.26)...
So just to clear a few things:
1) is linux's default SCTP implementation in 2.6 different from
OpenSS7 implementation?
2) if so - are there any plans to support the aforementioned ioctl?
kind regards
Leon.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: where is (if at all) ioctl support for sctp...?
2008-07-21 1:02 where is (if at all) ioctl support for sctp...? leon zadorin
2008-07-21 1:10 ` leon zadorin
@ 2008-07-21 13:19 ` Vlad Yasevich
2008-07-21 14:51 ` leon zadorin
2 siblings, 0 replies; 4+ messages in thread
From: Vlad Yasevich @ 2008-07-21 13:19 UTC (permalink / raw)
To: linux-sctp
leon zadorin wrote:
> Hi all,
> my system is
> 2.6.23.1-42.fc8 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
> as I understand it - it comes with the kernel that is already
> sctp-enabled... (in fact I am able to create sctp sockets and
> communicate data between them).
>
> I have a question wrt ability of finding the amount of 'free space' in
> the SND buffer associated with a givent sctp socket's fd (the actual
> buffering strategy [single buffer per association or not] is not
> important to me - only the fact that eventually any message written
> via an SCTP socket will have to go to some kernel-level buffer - and I
> want to know the amount of free space left in such a buffer before
> actually writing the message).
>
> Essentially I don't want to wait for 'would block' type of a response
> from a written socket as in my deployment scenario it would,
> essentially, be too late- I want to begin throttling the data rate
> being directed to the outgoing sctp socket based on the amount of free
> space available in socket's buffer (the exact reasons are not that
> important and will not benefit this discussion).
>
> This is present in TCP protocols with ioctls like SIOCOUTQ.
>
> This is also available in SCTP's implelmentation by OpenSS7 (sctp-0.2.26)...
>
> So just to clear a few things:
> 1) is linux's default SCTP implementation in 2.6 different from
> OpenSS7 implementation?
Yes, very different.
> 2) if so - are there any plans to support the aforementioned ioctl?
There are no plans that I know off. This is the first such question/request,
so feel free to implement it and contribute the code.
-vlad
>
> kind regards
> Leon.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: where is (if at all) ioctl support for sctp...?
2008-07-21 1:02 where is (if at all) ioctl support for sctp...? leon zadorin
2008-07-21 1:10 ` leon zadorin
2008-07-21 13:19 ` Vlad Yasevich
@ 2008-07-21 14:51 ` leon zadorin
2 siblings, 0 replies; 4+ messages in thread
From: leon zadorin @ 2008-07-21 14:51 UTC (permalink / raw)
To: linux-sctp
On 7/21/08, Vlad Yasevich <vladislav.yasevich@hp.com> wrote:
> leon zadorin wrote:
>> Hi all,
>> my system is
>> 2.6.23.1-42.fc8 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
>> as I understand it - it comes with the kernel that is already
>> sctp-enabled... (in fact I am able to create sctp sockets and
>> communicate data between them).
>>
>> I have a question wrt ability of finding the amount of 'free space' in
>> the SND buffer associated with a givent sctp socket's fd (the actual
>> buffering strategy [single buffer per association or not] is not
>> important to me - only the fact that eventually any message written
>> via an SCTP socket will have to go to some kernel-level buffer - and I
>> want to know the amount of free space left in such a buffer before
>> actually writing the message).
>>
>> Essentially I don't want to wait for 'would block' type of a response
>> from a written socket as in my deployment scenario it would,
>> essentially, be too late- I want to begin throttling the data rate
>> being directed to the outgoing sctp socket based on the amount of free
>> space available in socket's buffer (the exact reasons are not that
>> important and will not benefit this discussion).
>>
>> This is present in TCP protocols with ioctls like SIOCOUTQ.
>>
>> This is also available in SCTP's implelmentation by OpenSS7
>> (sctp-0.2.26)...
>>
>> So just to clear a few things:
>> 1) is linux's default SCTP implementation in 2.6 different from
>> OpenSS7 implementation?
>
> Yes, very different.
>
>> 2) if so - are there any plans to support the aforementioned ioctl?
>
> There are no plans that I know off. This is the first such
> question/request,
> so feel free to implement it and contribute the code.
ok - I will have a go as soon as i get the time (which may not be for
a few weeks at least I'm afraid)...
from my, albeit currently cursive, understanding I would only need to
expose the 'sctp_wspace' from net/sctp/socket.c into the user-space
land via an ioctl interface...
I will let you know on the progress (whet I get around to it)
> -vlad
>>
>> kind regards
>> Leon.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-21 14:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 1:02 where is (if at all) ioctl support for sctp...? leon zadorin
2008-07-21 1:10 ` leon zadorin
2008-07-21 13:19 ` Vlad Yasevich
2008-07-21 14:51 ` leon zadorin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.