From: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
ath9k-devel@lists.ath9k.org, ath5k-devel@lists.ath5k.org,
ilw@linux.intel.com, users@rt2x00.serialmonkey.com,
b43-dev@lists.infradead.org, brcm80211-dev-list@broadcom.com,
chunkeey@googlemail.com, buytenh@wantstofly.org, dsd@gentoo.org,
coelho@ti.com, nbd@openwrt.org
Subject: [PATCH v6] mac80211: Remove control.sta from struct ieee80211_tx_info and restructure tx-path
Date: Thu, 26 Jul 2012 18:31:46 +0200 [thread overview]
Message-ID: <501170F2.3050300@net.t-labs.tu-berlin.de> (raw)
In-Reply-To: <1343319579.4477.3.camel@jlt3.sipsolutions.net>
Hi Johannes,
Johannes Berg schrieb:
>>
>> /home/johannes/sys/wireless/drivers/net/wireless/ti/wlcore/tx.c: In
>> function ?wl1271_skb_queue_head?:
>> /home/johannes/sys/wireless/drivers/net/wireless/ti/wlcore/tx.c:622:48:
>> warning: ?hlid? may be used uninitialized in this function
>> [-Wuninitialized]
>
> Those changes make no sense anyway -- you should be able to pass the
> station pointer through if it previously used info->control.sta, instead
> of doing an (expensive) lookup.
This is the call path
in main.c ... INIT_WORK(&wl->tx_work, wl1271_tx_work);
jumps to tx.c...wl1271_tx_work(struct work_struct *work)
calls wl1271_tx_work(struct work_struct *work)
calls wlcore_tx_work_locked(struct wl1271 *wl)
calls wl1271_skb_queue_head()
calls wl12xx_tx_get_hlid()
calls wl12xx_tx_get_hlid_ap() .... where sta is needed.
But I could not find any point in the call path where I could grab the
sta pointer and pass it through. I will move the rcu into
wl12xx_tx_get_hlid_ap(), but I do not see any cheaper way here as using rcu.
Greetings Thomas
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH v6] mac80211: Remove control.sta from struct ieee80211_tx_info and restructure tx-path
Date: Thu, 26 Jul 2012 18:31:46 +0200 [thread overview]
Message-ID: <501170F2.3050300@net.t-labs.tu-berlin.de> (raw)
In-Reply-To: <1343319579.4477.3.camel@jlt3.sipsolutions.net>
Hi Johannes,
Johannes Berg schrieb:
>>
>> /home/johannes/sys/wireless/drivers/net/wireless/ti/wlcore/tx.c: In
>> function ?wl1271_skb_queue_head?:
>> /home/johannes/sys/wireless/drivers/net/wireless/ti/wlcore/tx.c:622:48:
>> warning: ?hlid? may be used uninitialized in this function
>> [-Wuninitialized]
>
> Those changes make no sense anyway -- you should be able to pass the
> station pointer through if it previously used info->control.sta, instead
> of doing an (expensive) lookup.
This is the call path
in main.c ... INIT_WORK(&wl->tx_work, wl1271_tx_work);
jumps to tx.c...wl1271_tx_work(struct work_struct *work)
calls wl1271_tx_work(struct work_struct *work)
calls wlcore_tx_work_locked(struct wl1271 *wl)
calls wl1271_skb_queue_head()
calls wl12xx_tx_get_hlid()
calls wl12xx_tx_get_hlid_ap() .... where sta is needed.
But I could not find any point in the call path where I could grab the
sta pointer and pass it through. I will move the rcu into
wl12xx_tx_get_hlid_ap(), but I do not see any cheaper way here as using rcu.
Greetings Thomas
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
ath9k-devel@lists.ath9k.org, ath5k-devel@lists.ath5k.org,
ilw@linux.intel.com, users@rt2x00.serialmonkey.com,
b43-dev@lists.infradead.org, brcm80211-dev-list@broadcom.com,
chunkeey@googlemail.com, buytenh@wantstofly.org, dsd@gentoo.org,
coelho@ti.com, nbd@openwrt.org
Subject: Re: [PATCH v6] mac80211: Remove control.sta from struct ieee80211_tx_info and restructure tx-path
Date: Thu, 26 Jul 2012 18:31:46 +0200 [thread overview]
Message-ID: <501170F2.3050300@net.t-labs.tu-berlin.de> (raw)
In-Reply-To: <1343319579.4477.3.camel@jlt3.sipsolutions.net>
Hi Johannes,
Johannes Berg schrieb:
>>
>> /home/johannes/sys/wireless/drivers/net/wireless/ti/wlcore/tx.c: In
>> function ‘wl1271_skb_queue_head’:
>> /home/johannes/sys/wireless/drivers/net/wireless/ti/wlcore/tx.c:622:48:
>> warning: ‘hlid’ may be used uninitialized in this function
>> [-Wuninitialized]
>
> Those changes make no sense anyway -- you should be able to pass the
> station pointer through if it previously used info->control.sta, instead
> of doing an (expensive) lookup.
This is the call path
in main.c ... INIT_WORK(&wl->tx_work, wl1271_tx_work);
jumps to tx.c...wl1271_tx_work(struct work_struct *work)
calls wl1271_tx_work(struct work_struct *work)
calls wlcore_tx_work_locked(struct wl1271 *wl)
calls wl1271_skb_queue_head()
calls wl12xx_tx_get_hlid()
calls wl12xx_tx_get_hlid_ap() .... where sta is needed.
But I could not find any point in the call path where I could grab the
sta pointer and pass it through. I will move the rcu into
wl12xx_tx_get_hlid_ap(), but I do not see any cheaper way here as using rcu.
Greetings Thomas
next prev parent reply other threads:[~2012-07-26 16:31 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-26 16:09 [PATCH v6] mac80211: Remove control.sta from struct ieee80211_tx_info and restructure tx-path Thomas Huehn
2012-07-26 16:09 ` [ath9k-devel] " Thomas Huehn
2012-07-26 16:17 ` Johannes Berg
2012-07-26 16:17 ` Johannes Berg
2012-07-26 16:17 ` [ath9k-devel] " Johannes Berg
2012-07-26 16:19 ` Johannes Berg
2012-07-26 16:19 ` Johannes Berg
2012-07-26 16:19 ` [ath9k-devel] " Johannes Berg
2012-07-26 16:31 ` Thomas Huehn [this message]
2012-07-26 16:31 ` Thomas Huehn
2012-07-26 16:31 ` [ath9k-devel] " Thomas Huehn
2012-07-26 16:46 ` Johannes Berg
2012-07-26 16:57 ` Arik Nemtsov
2012-07-26 16:57 ` Arik Nemtsov
2012-07-26 16:57 ` [ath9k-devel] " Arik Nemtsov
2012-07-26 17:04 ` Arik Nemtsov
2012-07-26 17:04 ` Arik Nemtsov
2012-07-26 17:04 ` [ath9k-devel] " Arik Nemtsov
2012-07-26 18:41 ` Arik Nemtsov
2012-07-26 18:41 ` Arik Nemtsov
2012-07-26 18:41 ` [ath9k-devel] " Arik Nemtsov
2012-07-26 20:02 ` Thomas Huehn
2012-07-26 20:02 ` Thomas Huehn
2012-07-26 20:02 ` [ath9k-devel] " Thomas Huehn
2012-07-27 7:26 ` Johannes Berg
2012-07-27 7:26 ` Johannes Berg
2012-07-27 7:26 ` [ath9k-devel] " Johannes Berg
2012-07-27 9:35 ` Thomas Huehn
2012-07-27 9:35 ` Thomas Huehn
2012-07-27 9:35 ` [ath9k-devel] " Thomas Huehn
2012-07-27 11:52 ` Johannes Berg
2012-07-27 11:52 ` Johannes Berg
2012-07-27 11:52 ` [ath9k-devel] " Johannes Berg
2012-07-27 13:28 ` Thomas Huehn
2012-07-27 13:28 ` Thomas Huehn
2012-07-27 13:28 ` [ath9k-devel] " Thomas Huehn
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=501170F2.3050300@net.t-labs.tu-berlin.de \
--to=thomas@net.t-labs.tu-berlin.de \
--cc=ath5k-devel@lists.ath5k.org \
--cc=ath9k-devel@lists.ath9k.org \
--cc=b43-dev@lists.infradead.org \
--cc=brcm80211-dev-list@broadcom.com \
--cc=buytenh@wantstofly.org \
--cc=chunkeey@googlemail.com \
--cc=coelho@ti.com \
--cc=dsd@gentoo.org \
--cc=ilw@linux.intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=nbd@openwrt.org \
--cc=users@rt2x00.serialmonkey.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.