Search Linux Wireless

Re: [PATCH 1/3] wifi: mt76: mt7915: move mib_stats structure in mt76.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/15/23 4:54 AM, Lorenzo Bianconi wrote:
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;
	...
};

Maybe:

struct mt7915_mib_stats {
	struct mt76_mib_stats common;
	...
};

I also noticed that Ryder added a few of my patches that extended the
stats, so I think there are probably a lot of stats in that struct
that are not set on the 7921 driver and probably older drivers too.

To me, unset stats are confusing, so I'd prefer to put stats that are mostly
common in a common struct, and have per-driver stats just found in the driver
itself.

Thanks,
Ben


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux