From: Patrick McHardy <kaber@trash.net>
To: "François Valenduc" <francois.valenduc@tvcablenet.be>
Cc: Andrew Morton <akpm@linux-foundation.org>,
bugme-daemon@bugzilla.kernel.org, linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>,
Linux Netdev List <netdev@vger.kernel.org>,
Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Subject: Re: [Bugme-new] [Bug 11144] New: dhcp doesn't work with iwl4965
Date: Wed, 23 Jul 2008 17:19:46 +0200 [thread overview]
Message-ID: <48874C12.10606@trash.net> (raw)
In-Reply-To: <48874BD8.60600@trash.net>
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
Patrick McHardy wrote:
> François Valenduc wrote:
>> I did the bisection again, this time on the whole tree and the first
>> bad commit is again the one I mentioned previously:
>>
>> 175f9c1bba9b825d22b142d183c9e175488b260c is first bad commit
>> commit 175f9c1bba9b825d22b142d183c9e175488b260c
>> Author: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
>> Date: Sun Jul 20 00:08:47 2008 -0700
>>
>> net_sched: Add size table for qdiscs
>>
>> Add size table functions for qdiscs and calculate packet size in
>> qdisc_enqueue().
>>
>> Based on patch by Patrick McHardy
>> http://marc.info/?l=linux-netdev&m=115201979221729&w=2
>>
>> This time, I didn't encounter kernels which didn't compile. So, I
>> didn't use git-reset or git-bisect skip.
>
>
> I think I know whats happening (Jussi CCed). That commit introduced
> a qdisc_skb_cb, which conflicts with the mac80211 usage of skb->cb.
> mac80211 seems to expect the CB to survive the qdisc layer, which
> is wrong. One possibility to fix this (or just test my theory)
> would be to make sure they don't clash by adding the struct
> ieee80211_tx_info to qdisc_skb_cb->data. Something like this patch.
>
> +#include <net/sched_generic.h>
That should be sch_generic.h.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 700 bytes --]
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 4dd3d93..e19815e 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -19,6 +19,7 @@
#include <linux/wireless.h>
#include <linux/device.h>
#include <linux/ieee80211.h>
+#include <net/sch_generic.h>
#include <net/wireless.h>
#include <net/cfg80211.h>
@@ -343,7 +344,10 @@ struct ieee80211_tx_info {
static inline struct ieee80211_tx_info *IEEE80211_SKB_CB(struct sk_buff *skb)
{
- return (struct ieee80211_tx_info *)skb->cb;
+ BUILD_BUG_ON(sizeof(skb->cb) <
+ sizeof(struct qdisc_skb_cb) +
+ sizeof(struct ieee80211_tx_info));
+ return (struct ieee80211_tx_info *)qdisc_skb_cb(skb)->data;
}
next prev parent reply other threads:[~2008-07-23 15:19 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-11144-10286@http.bugzilla.kernel.org/>
2008-07-22 10:48 ` [Bugme-new] [Bug 11144] New: dhcp doesn't work with iwl4965 Andrew Morton
2008-07-22 10:52 ` Patrick McHardy
[not found] ` <20080722034850.dbbc5566.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-07-23 7:58 ` François Valenduc
2008-07-23 7:59 ` François Valenduc
[not found] ` <4886E49D.6010700-bmtTS95sd5BUM80lpFwj4w@public.gmane.org>
2008-07-23 8:05 ` Andrew Morton
[not found] ` <20080723010522.389a948f.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-07-23 9:17 ` François Valenduc
[not found] ` <4886F727.6010301-bmtTS95sd5BUM80lpFwj4w@public.gmane.org>
2008-07-23 10:12 ` Patrick McHardy
[not found] ` <48870425.50908-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-07-23 11:29 ` François Valenduc
[not found] ` <48871632.3010205-bmtTS95sd5BUM80lpFwj4w@public.gmane.org>
2008-07-23 11:31 ` Patrick McHardy
2008-07-23 11:58 ` François Valenduc
[not found] ` <4887169B.6090102-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-07-23 12:36 ` François Valenduc
2008-07-23 12:44 ` Patrick McHardy
[not found] ` <488727B3.7040007-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-07-23 12:51 ` Patrick McHardy
2008-07-23 14:57 ` François Valenduc
2008-07-23 15:18 ` Patrick McHardy
2008-07-23 15:19 ` Patrick McHardy [this message]
2008-07-23 15:42 ` François Valenduc
[not found] ` <4887514C.6080903-bmtTS95sd5BUM80lpFwj4w@public.gmane.org>
2008-07-23 15:52 ` Patrick McHardy
2008-07-23 15:58 ` François Valenduc
2008-07-23 15:59 ` Patrick McHardy
2008-07-23 16:25 ` Patrick McHardy
2008-07-23 21:21 ` David Miller
[not found] ` <20080723.142147.61941255.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-07-24 8:58 ` Patrick McHardy
[not found] ` <48884451.1090703-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-07-24 10:17 ` Tomas Winkler
[not found] ` <1ba2fa240807240317g15f6ba84h91b513cce75975e9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-24 10:19 ` Patrick McHardy
[not found] ` <48885743.8030505-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
2008-07-24 11:35 ` Tomas Winkler
[not found] ` <1ba2fa240807240435g36daa80at254144afffc39c32-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-24 11:45 ` Johannes Berg
2008-07-30 18:04 ` François Valenduc
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=48874C12.10606@trash.net \
--to=kaber@trash.net \
--cc=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=francois.valenduc@tvcablenet.be \
--cc=jussi.kivilinna@mbnet.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/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).