l2test: Attempt to update BT_SNDMTU/omtu when using -D
Luiz Augusto von Dentz
maintainerPATCH 1/1 l2test: Attempt to update BT_SNDMTU/omtu when using -D
From: Luiz Augusto von Dentz <[email protected]>
This attempts to update the omtu using getsockopt(BT_SNDMTU) since it can be updated after the initial connection and there are tests such L2CAP/ECFC/BV-23-C that attempts to check that the updated MTU is used.
--- tools/l2test.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
tools/l2test.c +9 -1
@@ -957,6 +957,7 @@ static void do_send(int sk) {uint32_t seq;int i, fd, len, buflen, size, sent; +socklen_t optlen;syslog (LOG_INFO ,"Sending ..." );
@@ -1021,8 +1022,15 @@ static void do_send(int sk) }if (num_frames && send_delay && count && - !(seq % (count + seq_start))) + !(seq % (count + seq_start))) {usleep (send_delay); +/* Attempt to update the BT_SNDMTU/omtu */ +if (getsockopt (sk,SOL_BLUETOOTH ,BT_SNDMTU , &omtu, + &optlen) <0 ) +syslog (LOG_ERR , +"getsockopt(BT_SNDMTU): %s (%d)" , +strerror (errno), errno); + } } }
Signature · 1 line
2.53.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1061476
---Test result---
Test Summary:
CheckPatch PENDING 0.35 seconds GitLint PENDING 0.38 seconds BuildEll PASS 21.28 seconds BluezMake PASS 664.88 seconds MakeCheck PASS 18.40 seconds MakeDistcheck PASS 248.60 seconds CheckValgrind PASS 299.32 seconds CheckSmatch PASS 365.57 seconds bluezmakeextell PASS 186.43 seconds IncrementalBuild PENDING 0.31 seconds ScanBuild PASS 1043.14 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth