From: Marcel Holtmann <marcel@holtmann.org>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: Mat Martineau <mathewm@codeaurora.org>,
Gustavo Padovan <padovan@profusion.mobi>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>,
"ulrik.lauren@stericsson.com" <ulrik.lauren@stericsson.com>,
"kanak.gupta@stericsson.com" <kanak.gupta@stericsson.com>
Subject: Re: [PATCH 2/2] Bluetooth: Add ability to force local busy condition on L2CAP ERTM
Date: Wed, 09 Nov 2011 23:48:27 +0900 [thread overview]
Message-ID: <1320850111.15441.342.camel@aeonflux> (raw)
In-Reply-To: <201111091446.28192.szymon.janc@tieto.com>
Hi Syzmon,
> > >> NACK on this. I don't wanna move code with the specific purpose of pass a PTS
> > >> test into the tree. This kinda of thing can survive outside of the tree.
> > >
> > > actually it can not life outside the tree. We need to be able to pass
> > > the PTS test cases with an upstream source.
> > >
> > > However instead of hacking this in, what is the actual test case details
> > > here that we need to have support for?
> >
> > ERTM will send an RNR when the socket receive buffer fills up. For
> > this test case, it works to just set the SO_RCVBUF sockopt to
> > a small enough value that the recv buffer fills before the transmit
> > window does - no kernel changes required.
>
> @Marcel
> This test case is to "Verify the IUT will send an S-Frame [RNR] when it detects a Local Busy condition."
>
> "Pass verdict:
> - ALT 1: The IUT immediately sends an S-Frame with function RNR after the Local
> Busy condition is set by the Upper Tester.
> - ALT 2: The IUT sends an S-Frame with function RNR after receiving I-Frame(s) from
> the Tester when the Local Busy condition is set by the Upper Tester."
>
>
> I was trying to pass ALT2 with Mat's suggestions but couldn't trigger local busy.
> Minimum possible value for SO_RCVBUF (at least here on 3.0 kernel) is 2224 bytes and this is
> still too high to allow PTS to trigger local busy (PTS tries to send txwin i-frames with 4 bytes of
> data only).
> [If it would possible to force PTS to send larger i-frames than it should work as well but I wasn't
> able to find any option that would do that... please correct me if it is possible]
>
> With forcing local busy on channels it is possible to pass ALT1 scenario: PTS ask IUT to enter
> local busy condition and just waits for RNR to be send.
>
> @Gustavo
> If you prefer not to temper with normal code path I could just get rid of force_local_busy variable
> and not hold channels in local busy state. This should be enough to pass test.
so I like the idea to make this work with standard socket options. That
is how we should be doing this. So lets figure out on how to make Mat's
suggestion work for us.
Regards
Marcel
next prev parent reply other threads:[~2011-11-09 14:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-03 15:05 [PATCH 1/2] Bluetooth: Add debug print to l2cap_chan_create Szymon Janc
2011-11-03 15:05 ` [PATCH 2/2] Bluetooth: Add ability to force local busy condition on L2CAP ERTM Szymon Janc
2011-11-04 17:15 ` Gustavo Padovan
2011-11-04 21:10 ` Marcel Holtmann
2011-11-04 22:25 ` Mat Martineau
2011-11-09 13:46 ` Szymon Janc
2011-11-09 14:48 ` Marcel Holtmann [this message]
2011-11-09 17:15 ` Luiz Augusto von Dentz
2011-11-10 18:03 ` Mat Martineau
2011-11-04 17:12 ` [PATCH 1/2] Bluetooth: Add debug print to l2cap_chan_create Gustavo Padovan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320850111.15441.342.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=kanak.gupta@stericsson.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=mathewm@codeaurora.org \
--cc=padovan@profusion.mobi \
--cc=szymon.janc@tieto.com \
--cc=ulrik.lauren@stericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).