Linux wireless drivers development
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
To: Ben Greear <greearb@candelatech.com>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>,
	nbd@nbd.name, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/3] wifi: mt76: mt7915: move mib_stats structure in mt76.h
Date: Sat, 15 Jul 2023 13:54:30 +0200	[thread overview]
Message-ID: <ZLKI9tiNytMl8Vlo@lore-desk> (raw)
In-Reply-To: <486cb426-737e-fa57-20da-344fc44bb4de@candelatech.com>

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

> On 5/12/23 15:29, Lorenzo Bianconi wrote:
> > mib_stats structure is shared by mostly all chipsets. Move it to shared
> > code.
> 
> In case this thing hasn't been pushed upstream yet, then a suggestion:
> 
> Create a struct mt76_mib_stats_common class that has the common counters,
> and then per-driver can have that struct as first member of its mib stats.
> 
> I have added a lot of per-driver stats that never made it upstream
> and are not fully shared across different drivers.

I would say mt76_mib_stats is quite a general name. I think we can do somothing
like (if it is really necessary):

struct mt7915_mib_stats {
	struct mt76_mib_stats mt76;
	...
};

Regards,
Lorenzo

> 
> Thanks,
> Ben
> 
> > 
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> >   drivers/net/wireless/mediatek/mt76/mt76.h     | 63 +++++++++++++++++++
> >   .../wireless/mediatek/mt76/mt7915/debugfs.c   |  4 +-
> >   .../net/wireless/mediatek/mt76/mt7915/mac.c   |  2 +-
> >   .../net/wireless/mediatek/mt76/mt7915/main.c  |  4 +-
> >   .../wireless/mediatek/mt76/mt7915/mt7915.h    | 63 +------------------
> >   5 files changed, 69 insertions(+), 67 deletions(-)
> > 
> > diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h
> > index 75b5c2c56a92..45bf1022a051 100644
> > --- a/drivers/net/wireless/mediatek/mt76/mt76.h
> > +++ b/drivers/net/wireless/mediatek/mt76/mt76.h
> > @@ -857,6 +857,69 @@ struct mt76_dev {
> >   	};
> >   };
> > +/* per-phy stats.  */
> > +struct mt76_mib_stats {
> > +	u32 ack_fail_cnt;
> 
> -- 
> Ben Greear <greearb@candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
> 
> 

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

  reply	other threads:[~2023-07-15 11:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-12 22:29 [PATCH 0/3] wifi: mt76: move mib_stats structure in mt76.h Lorenzo Bianconi
2023-05-12 22:29 ` [PATCH 1/3] wifi: mt76: mt7915: " Lorenzo Bianconi
2023-05-16 15:03   ` Simon Horman
2023-07-14 16:00   ` Ben Greear
2023-07-15 11:54     ` Lorenzo Bianconi [this message]
2023-07-16  0:00       ` Ben Greear
2023-07-16  2:39         ` Ryder Lee
2023-05-12 22:29 ` [PATCH 2/3] wifi: mt76: mt7996: rely on mib_stats shared definition Lorenzo Bianconi
2023-05-16 15:03   ` Simon Horman
2023-05-12 22:29 ` [PATCH 3/3] wifi: mt76: mt7921: " Lorenzo Bianconi
2023-05-16 15:04   ` Simon Horman

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=ZLKI9tiNytMl8Vlo@lore-desk \
    --to=lorenzo.bianconi@redhat.com \
    --cc=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    /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