All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Gix <bggixx@gmail.com>
To: Junho Lee <tot0roprog@gmail.com>, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ 1/4] mesh: Implement lower transport layer for segmentation and reassembly
Date: Sun, 13 Oct 2024 12:27:18 -0700	[thread overview]
Message-ID: <b34b48bb-bf86-4a50-90fb-b0ff147c1be8@gmail.com> (raw)
In-Reply-To: <66ff99e5.630a0220.2b5d14.8e61@mx.google.com>

Hi Junho,

There are some check-patch failures on your patchset.

Can you fix these (and any others you find with check-patch) and resubmit?
The ones below are only from patch 1 of 4...  patch 3 applied cleanly, 
but 2 and 4 also could not be applied until patch 1 is fixed.

Thanks,
Brian

On 10/4/24 12:31 AM, Junho Lee wrote:
> -			send_net_ack(net, sar_in, expected);
> +		if (sar->flags == expected) {
> +			/*
> +			 * According to MshPRTv1.1: 3.5.3.4, if the destination
> +			 * is a unicast address and a segment is received for a
> +			 * completed message, it sends one acknowledgment within
> +			 * a period of:
> +			 *	[acknowledgment delay increment * segment reception interval]
WARNING:LONG_LINE_COMMENT: line over 80 characters
#774: FILE: mesh/net.c:2207:
+             *    [acknowledgment delay increment * segment reception 
interval]


>   	/* Msg length only definitive on last segment */
>   	if (segO == segN)
> -		sar_in->len = segN * MAX_SEG_LEN + size;
> +		sar->len = segN * MAX_SEG_LEN + size;
> +
> +	/* Send ACK only if DST is unicast address. */
> +	if(IS_UNICAST(dst)) {
ERROR:SPACING: space required before the open parenthesis '('
#875: FILE: mesh/net.c:2283:
+    if(IS_UNICAST(dst)) {

> +	 * segmented. Flush if it is not segmented or if the transmission
> +	 * failed.
> +	 */
> +	if (result && segmented) {
> +		struct mesh_sar_tx *sar_tx = mesh_sar_tx_new();
> +		bool is_unicast = IS_UNICAST(dst);
> +		sar_tx->ack_received = false;
WARNING:LINE_SPACING: Missing a blank line after declarations
#1010: FILE: mesh/net.c:3565:
+        bool is_unicast = IS_UNICAST(dst);
+        sar_tx->ack_received = false;



  parent reply	other threads:[~2024-10-13 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-04  7:31 [PATCH BlueZ 1/4] mesh: Implement lower transport layer for segmentation and reassembly Junho Lee
2024-10-04  8:57 ` mesh: Fix segmentation behavior of Lower transport layer bluez.test.bot
2024-10-13 19:27 ` Brian Gix [this message]
2024-10-14  5:31   ` [PATCH BlueZ 1/4] mesh: Implement lower transport layer for segmentation and reassembly Junho Lee

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=b34b48bb-bf86-4a50-90fb-b0ff147c1be8@gmail.com \
    --to=bggixx@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=tot0roprog@gmail.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 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.