linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>,
	nbd@nbd.name, linux-wireless@vger.kernel.org,
	ryder.lee@mediatek.com, roychl666@gmail.com
Subject: Re: [RFC 2/2] mt76: introduce mt76_hw_queue data structure
Date: Fri, 1 Mar 2019 11:31:28 +0100	[thread overview]
Message-ID: <20190301103126.GA16993@localhost.localdomain> (raw)
In-Reply-To: <20190301095852.GA31324@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

> On Fri, Mar 01, 2019 at 10:22:04AM +0100, Lorenzo Bianconi wrote:
> > -struct mt76_queue {
> > +struct mt76_hw_queue {
> >  
> >  	u16 first;
> >  	u16 head;
> >  	u16 tail;
> > -	int ndesc;
> > -	int queued;
> > -	int buf_size;
> >  
> > +	dma_addr_t desc_dma;
> > +
> > +	int buf_size;
> >  	u8 buf_offset;
> > +
> >  	u8 hw_idx;
> >  
> > -	dma_addr_t desc_dma;
> > -	struct sk_buff *rx_head;
> >  	struct page_frag_cache rx_page;
> >  	spinlock_t rx_page_lock;
> > +	struct sk_buff *rx_head;
> > +};
> > +
> > +struct mt76_queue {
> > +	struct mt76_hw_queue *hwq;
> > +
> > +	struct list_head swq;
> > +	int swq_queued;
> >  };
> 
> I don't think massive renaming is necessary. It makes patch more complex
> and eventual future backporting of fixes harder. Simpler approach would
> be doing:
> 
> struct mt76_sw_queue {
> 	struct mt76_queue *q;
> 
> 	struct list_head swq;
> 	int swq_queued;
> }

ack, it sounds good to me. Anyway mt76_queue is pretty spread as well :(
I will post a v2 squashing this change.

Regards,
Lorenzo

> 
> what should achieve the same goal without massive changes in the code.
> 
> Stanislaw

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      reply	other threads:[~2019-03-01 10:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-01  9:22 [RFC 0/2] introduce mt76_hw_queue data structure Lorenzo Bianconi
2019-03-01  9:22 ` [RFC 1/2] mt76: rename mt76_queue pointer occurrences from hwq to q Lorenzo Bianconi
2019-03-01  9:22 ` [RFC 2/2] mt76: introduce mt76_hw_queue data structure Lorenzo Bianconi
2019-03-01  9:58   ` Stanislaw Gruszka
2019-03-01 10:31     ` Lorenzo Bianconi [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=20190301103126.GA16993@localhost.localdomain \
    --to=lorenzo.bianconi@redhat.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    --cc=roychl666@gmail.com \
    --cc=ryder.lee@mediatek.com \
    --cc=sgruszka@redhat.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).