All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhu Yi <yi.zhu@intel.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org, Jeff Garzik <jgarzik@pobox.com>
Subject: Re: [PATCH V2] Add iwlwifi wireless drivers
Date: Tue, 04 Sep 2007 10:25:46 +0800	[thread overview]
Message-ID: <1188872746.13078.411.camel@debian.sh.intel.com> (raw)
In-Reply-To: <20070831205524.GA11128@tuxdriver.com>

On Fri, 2007-08-31 at 16:55 -0400, John W. Linville wrote:
> A few comments below -- many of them are nits or somewhat minor.
> I think the ieee80211_rate.h one needs to be resolved for sure.  Also,
> splitting iwl-base.c is definitely worth considering -- building two
> object from one source is a bit ugly.
> 
> Please respond to the questions/comments, and indicate if/when you
> will split iwl-base.c.

Will split it in the next version as well as addressing all your
comments below.

> Also, let's figure-out what really needs to
> be exportd to drivers from ieee80211_rate.h and get that done.

Since they are device specific rate scale algorithm, I don't think they
will help to increase performance for other devices. So make them stay
together with the driver is a better choice (vs. with mac80211). If so,
the rate scale interface has to be abstracted from internal mac80211.
The current dependencies are as below:

iwl3945-rs -> rate_control_ops (ieee80211_rate.h)
rate_control_ops -> sta_info (sta_info.h)
rate_control_ops -> ieee80211_local (ieee80211_i.h)
ieee80211_local -> ieee80211_key (ieee80211_key.h)

If we want to avoid a big restructure of the mac80211 headers, the
easiest way is to move four header files from net/mac80211 to
include/net/ and rename them with mac80211_ prefix (especially for
sta_info.h). This way, for any mac80211 based wireless drivers want to
create their own rate scale algorithm, they can smiply include
<net/mac80211_rate.h> and implement all the callback functions.
Comments?

If you all agree with this change, especially the mac80211 folks, I'll
come up with a patch for it.

Thanks,
-yi

  parent reply	other threads:[~2007-09-04  2:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-27  5:20 [PATCH V2] Add iwlwifi wireless drivers Zhu Yi
2007-08-27 13:10 ` Christoph Hellwig
2007-08-28  7:25   ` Zhu Yi
2007-08-28  8:50     ` Johannes Berg
2007-08-28  9:07       ` Zhu Yi
2007-08-28  9:28         ` Johannes Berg
2007-08-28 12:28       ` Christoph Hellwig
2007-08-28 13:37         ` Tomas Winkler
2007-08-31 20:55 ` John W. Linville
2007-08-31 22:03   ` Johannes Berg
2007-09-01 10:04     ` Johannes Berg
2007-09-04  2:25   ` Zhu Yi [this message]
2007-09-04 14:13     ` Johannes Berg
2007-09-06  1:32       ` Ian Schram
2007-09-06  2:20         ` Larry Finger
2007-09-06 12:00         ` Johannes Berg
2007-09-06 14:04           ` Tomas Winkler
2007-09-06 14:14             ` Johannes Berg
2007-09-06 14:31               ` Tomas Winkler
2007-09-06 14:40                 ` Johannes Berg

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=1188872746.13078.411.camel@debian.sh.intel.com \
    --to=yi.zhu@intel.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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.