2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-08 17:44:29 +02:00
|
|
|
|
|
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:48 +02:00
|
|
|
|
2017-05-27 00:27:25 +02:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-15 11:47:34 -04:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
2009-02-12 11:38:37 +05:30
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
2011-11-24 11:15:21 -08:00
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-15 19:13:56 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2014-04-15 19:13:56 +03:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2012-12-12 16:56:20 -08:00
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
2012-12-12 16:56:20 -08:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2014-04-01 07:13:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-15 19:13:56 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
|
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2013-06-28 10:39:59 +02:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2013-02-12 16:43:19 +01:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2008-10-14 16:58:37 +02:00
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
|
|
|
|
|
2013-02-12 14:21:00 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2010-07-16 13:01:24 +02:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-17 17:14:26 +03:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-17 17:14:26 +03:00
|
|
|
|
|
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
|
|
|
|
|
2009-12-17 13:55:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-28 15:01:57 +01:00
|
|
|
|
2009-12-17 13:55:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2008-10-14 16:58:37 +02:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-10-14 16:58:37 +02:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-10-14 16:58:37 +02:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
|
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
2011-02-25 12:24:10 +01:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2011-02-25 12:24:10 +01:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-25 12:24:10 +01:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2008-10-14 16:58:37 +02:00
|
|
|
|
2008-10-09 12:13:49 +02:00
|
|
|
|
|
|
|
|
|
2013-03-01 11:54:43 +01:00
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2011-11-18 11:32:00 -08:00
|
|
|
|
2014-07-17 17:14:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-12-13 15:41:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-27 18:55:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-12 14:21:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-07 11:47:44 +01:00
|
|
|
|
2008-10-14 16:58:37 +02:00
|
|
|
|
|
|
|
|
|
2012-07-18 13:31:31 +02:00
|
|
|
|
|
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2009-02-10 21:25:46 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2012-11-14 23:22:21 +01:00
|
|
|
|
2012-07-18 13:31:31 +02:00
|
|
|
|
2009-02-10 21:25:54 +01:00
|
|
|
|
2012-07-18 13:31:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2017-05-27 00:27:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-09-06 17:32:40 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-29 16:04:36 +02:00
|
|
|
|
2010-06-10 10:21:43 +02:00
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:46 +02:00
|
|
|
|
2012-11-14 23:22:21 +01:00
|
|
|
|
2010-06-10 10:21:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-05 19:37:40 +02:00
|
|
|
|
2010-06-10 10:21:44 +02:00
|
|
|
|
2011-05-22 16:10:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-30 16:34:46 +02:00
|
|
|
|
|
|
|
|
|
2017-09-06 15:01:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-30 16:34:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-12 14:08:44 -07:00
|
|
|
|
|
|
|
|
|
2011-05-13 13:35:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:43 +02:00
|
|
|
|
|
|
|
|
|
2011-05-13 13:35:40 +02:00
|
|
|
|
|
|
|
|
|
2013-06-12 14:08:44 -07:00
|
|
|
|
2011-05-13 13:35:40 +02:00
|
|
|
|
2011-05-13 14:15:49 +02:00
|
|
|
|
2017-05-27 00:27:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:43 +02:00
|
|
|
|
2012-07-18 13:31:31 +02:00
|
|
|
|
2017-05-27 00:27:25 +02:00
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:43 +02:00
|
|
|
|
2010-06-10 10:21:48 +02:00
|
|
|
|
2010-06-10 10:21:43 +02:00
|
|
|
|
|
|
|
|
|
2009-02-10 21:25:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-29 14:17:31 -07:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networking: convert many more places to skb_put_zero()
There were many places that my previous spatch didn't find,
as pointed out by yuan linyu in various patches.
The following spatch found many more and also removes the
now unnecessary casts:
@@
identifier p, p2;
expression len;
expression skb;
type t, t2;
@@
(
-p = skb_put(skb, len);
+p = skb_put_zero(skb, len);
|
-p = (t)skb_put(skb, len);
+p = skb_put_zero(skb, len);
)
... when != p
(
p2 = (t2)p;
-memset(p2, 0, len);
|
-memset(p, 0, len);
)
@@
type t, t2;
identifier p, p2;
expression skb;
@@
t *p;
...
(
-p = skb_put(skb, sizeof(t));
+p = skb_put_zero(skb, sizeof(t));
|
-p = (t *)skb_put(skb, sizeof(t));
+p = skb_put_zero(skb, sizeof(t));
)
... when != p
(
p2 = (t2)p;
-memset(p2, 0, sizeof(*p));
|
-memset(p, 0, sizeof(*p));
)
@@
expression skb, len;
@@
-memset(skb_put(skb, len), 0, len);
+skb_put_zero(skb, len);
Apply it to the tree (with one manual fixup to keep the
comment in vxlan.c, which spatch removed.)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-16 14:29:19 +02:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
2009-11-25 17:46:19 +01:00
|
|
|
|
2009-02-10 21:25:47 +01:00
|
|
|
|
2011-10-26 14:47:29 -07:00
|
|
|
|
|
|
|
|
|
2009-11-25 17:46:19 +01:00
|
|
|
|
2009-02-15 12:44:28 +01:00
|
|
|
|
|
|
|
|
|
2011-11-30 16:56:34 +01:00
|
|
|
|
|
|
|
|
|
2009-02-15 12:44:28 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mac80211: send {ADD,DEL}BA on AC_VO like other mgmt frames, as per spec
ATM, {ADD,DEL}BA and BAR frames are sent on the AC matching the TID of
the BA parameters. In the discussion [1] about this patch, Johannes
recalled that it fixed some races with the DELBA and indeed this
behavior was introduced in [2].
While [2] is right for the BARs, the part queueing the {ADD,DEL}BAs on
their BA params TID AC violates the spec and is more a workaround for
some drivers. Helmut expressed some concerns wrt such drivers, in
particular DELBAs in rt2x00.
ATM, DELBAs are sent after a driver has called (hence "purposely")
ieee80211_start_tx_ba_cb_irqsafe and Johannes and Emmanuel gave some
details wrt intentions behind the split of the IEEE80211_AMPDU_TX_STOP_*
given to the driver ampdu_action supposed to call this function, which
could prove handy to people trying to do the right thing in faulty
drivers (if their fw/hw don't get in their way).
[1] http://mid.gmane.org/1390391564-18481-1-git-send-email-karl.beldan@gmail.com
[2] Commit: cf6bb79ad828 ("mac80211: Use appropriate TID for sending BAR, ADDBA and DELBA frames")
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-01-23 20:06:34 +01:00
|
|
|
|
2008-09-08 17:44:28 +02:00
|
|
|
|
|
|
|
|
|
2008-09-09 14:42:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-22 11:29:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-09 14:42:50 +02:00
|
|
|
|
|
|
|
|
|
2010-10-05 19:37:40 +02:00
|
|
|
|
|
|
|
|
|
2010-06-10 10:21:39 +02:00
|
|
|
|
2012-07-18 13:31:31 +02:00
|
|
|
|
2008-09-09 14:42:50 +02:00
|
|
|
|
2009-12-01 13:37:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networking: make skb_put & friends return void pointers
It seems like a historic accident that these return unsigned char *,
and in many places that means casts are required, more often than not.
Make these functions (skb_put, __skb_put and pskb_put) return void *
and remove all the casts across the tree, adding a (u8 *) cast only
where the unsigned char pointer was used directly, all done with the
following spatch:
@@
expression SKB, LEN;
typedef u8;
identifier fn = { skb_put, __skb_put };
@@
- *(fn(SKB, LEN))
+ *(u8 *)fn(SKB, LEN)
@@
expression E, SKB, LEN;
identifier fn = { skb_put, __skb_put };
type T;
@@
- E = ((T *)(fn(SKB, LEN)))
+ E = fn(SKB, LEN)
which actually doesn't cover pskb_put since there are only three
users overall.
A handful of stragglers were converted manually, notably a macro in
drivers/isdn/i4l/isdn_bsdcomp.c and, oddly enough, one of the many
instances in net/bluetooth/hci_sock.c. In the former file, I also
had to fix one whitespace problem spatch introduced.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-16 14:29:21 +02:00
|
|
|
|
2009-12-01 13:37:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-05 17:05:55 +02:00
|
|
|
|
2013-10-01 16:45:43 +03:00
|
|
|
|
2010-08-05 17:05:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-10 12:32:47 +02:00
|
|
|
|
2013-10-01 16:45:43 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-23 14:28:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-10 12:32:47 +02:00
|
|
|
|
2010-08-05 17:05:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-01 16:45:43 +03:00
|
|
|
|
|
|
|
|
|
2010-08-05 17:05:55 +02:00
|
|
|
|
|
|
|
|
|
2013-10-01 16:45:43 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-05 17:05:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|