linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Norris <briannorris@chromium.org>
To: Xinming Hu <huxinming820@gmail.com>
Cc: Linux Wireless <linux-wireless@vger.kernel.org>,
	Kalle Valo <kvalo@qca.qualcomm.com>,
	Dmitry Torokhov <dtor@google.com>,
	rajatja@google.com, Zhiyuan Yang <yangzy@marvell.com>,
	Cathy Luo <cluo@marvell.com>, Xinming Hu <huxm@marvell.com>,
	Ganapathi Bhat <gbhat@marvell.com>
Subject: Re: [PATCH v3 6/6] mwifiex: check next packet length for usb tx aggregation
Date: Fri, 19 May 2017 09:28:55 -0700	[thread overview]
Message-ID: <20170519162854.GA125761@google.com> (raw)
In-Reply-To: <1495184805-6631-6-git-send-email-huxinming820@gmail.com>

On Fri, May 19, 2017 at 09:06:45AM +0000, Xinming Hu wrote:
> From: Xinming Hu <huxm@marvell.com>
> 
> The next packet length will be used by interface driver, to check if the
> next packet still could be aggregated.
> 
> Signed-off-by: Xinming Hu <huxm@marvell.com>
> Signed-off-by: Cathy Luo <cluo@marvell.com>
> Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
> ---
> v3: same as v1,v2
> ---
>  drivers/net/wireless/marvell/mwifiex/11n_aggr.c | 8 ++++----
>  drivers/net/wireless/marvell/mwifiex/txrx.c     | 4 ++--
>  drivers/net/wireless/marvell/mwifiex/wmm.c      | 8 ++++----
>  3 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/net/wireless/marvell/mwifiex/11n_aggr.c b/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
> index cbf3bc2..8041f2d 100644
> --- a/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
> +++ b/drivers/net/wireless/marvell/mwifiex/11n_aggr.c
> @@ -254,15 +254,15 @@
>  		return 0;
>  	}
>  
> -	if (adapter->iface_type == MWIFIEX_USB) {
> -		ret = adapter->if_ops.host_to_card(adapter, priv->usb_port,
> -						   skb_aggr, NULL);
> -	} else {
>  		if (skb_src)
>  			tx_param.next_pkt_len =
>  					skb_src->len + sizeof(struct txpd);
>  		else
>  			tx_param.next_pkt_len = 0;

The above if/else is now improperly indented.

> +	if (adapter->iface_type == MWIFIEX_USB) {
> +		ret = adapter->if_ops.host_to_card(adapter, priv->usb_port,
> +						   skb_aggr, &tx_param);
> +	} else {
>  
>  		ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_TYPE_DATA,
>  						   skb_aggr, &tx_param);

[...]

Brian

      reply	other threads:[~2017-05-19 16:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-19  9:06 [PATCH v3 1/6] mwifiex: use variable interface header length Xinming Hu
2017-05-19  9:06 ` [PATCH v3 2/6] mwifiex: usb: kill urb before free its memory Xinming Hu
2017-05-19  9:06 ` [PATCH v3 3/6] mwifiex: usb: transmit aggregation packets Xinming Hu
2017-05-19  9:06 ` [PATCH v3 4/6] mwifiex: usb: add timer to flush " Xinming Hu
2017-05-19  9:06 ` [PATCH v3 5/6] mwifiex: do not aggregate tcp ack in usb tx aggregation queue Xinming Hu
2017-05-19 16:42   ` Brian Norris
2017-05-23  7:08     ` [EXT] " Xinming Hu
2017-05-23  7:10     ` Xinming Hu
2017-05-19  9:06 ` [PATCH v3 6/6] mwifiex: check next packet length for usb tx aggregation Xinming Hu
2017-05-19 16:28   ` Brian Norris [this message]

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=20170519162854.GA125761@google.com \
    --to=briannorris@chromium.org \
    --cc=cluo@marvell.com \
    --cc=dtor@google.com \
    --cc=gbhat@marvell.com \
    --cc=huxinming820@gmail.com \
    --cc=huxm@marvell.com \
    --cc=kvalo@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rajatja@google.com \
    --cc=yangzy@marvell.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).