Jiri Pirko
4bc71cb983
net: consolidate and fix ethtool_ops->get_settings calling
...
This patch does several things:
- introduces __ethtool_get_settings which is called from ethtool code and
from drivers as well. Put ASSERT_RTNL there.
- dev_ethtool_get_settings() is replaced by __ethtool_get_settings()
- changes calling in drivers so rtnl locking is respected. In
iboe_get_rate was previously ->get_settings() called unlocked. This
fixes it. Also prb_calc_retire_blk_tmo() in af_packet.c had the same
problem. Also fixed by calling __dev_get_by_index() instead of
dev_get_by_index() and holding rtnl_lock for both calls.
- introduces rtnl_lock in bnx2fc_vport_create() and fcoe_vport_create()
so bnx2fc_if_create() and fcoe_if_create() are called locked as they
are from other places.
- use __ethtool_get_settings() in bonding code
Signed-off-by: Jiri Pirko <jpirko@redhat.com >
v2->v3:
-removed dev_ethtool_get_settings()
-added ASSERT_RTNL into __ethtool_get_settings()
-prb_calc_retire_blk_tmo - use __dev_get_by_index() and lock
around it and __ethtool_get_settings() call
v1->v2:
add missing export_symbol
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com > [except FCoE bits]
Acked-by: Ralf Baechle <ralf@linux-mips.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2011-09-15 17:32:26 -04:00
..
2011-07-27 20:43:21 +05:30
2011-08-22 14:45:59 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:51 -04:00
2011-07-26 13:38:50 -07:00
2011-07-27 17:52:58 -03:00
2011-08-03 14:25:22 -10:00
2011-07-26 16:49:47 -07:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-07-30 08:57:57 -10:00
2011-07-28 11:31:47 +10:00
2011-08-09 15:38:57 -04:00
2011-07-27 13:23:02 -07:00
2011-08-03 21:53:27 -10:00
2011-07-26 16:49:47 -07:00
2011-08-26 12:02:50 -04:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-08-26 12:02:50 -04:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-08-03 11:30:42 -04:00
2011-07-23 20:44:25 +02:00
2011-07-26 16:49:47 -07:00
2011-08-26 12:02:50 -04:00
2011-07-22 17:05:15 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-25 20:57:14 -07:00
2011-08-03 19:06:37 -04:00
2011-07-26 16:49:44 -07:00
2011-08-08 11:33:23 -07:00
2011-07-26 16:49:47 -07:00
2011-08-06 22:12:37 -07:00
2011-07-25 20:57:16 -07:00
2011-08-06 22:52:40 -07:00
2011-07-26 16:49:47 -07:00
2011-08-02 12:32:04 +01:00
2011-07-26 16:49:47 -07:00
2011-08-02 12:32:06 +01:00
2011-08-02 12:32:04 +01:00
2011-07-26 16:49:45 -07:00
2011-07-26 16:49:47 -07:00
2011-07-25 20:57:16 -07:00
2011-08-01 13:40:51 -10:00
2011-09-15 17:32:26 -04:00
2011-07-26 11:34:40 -07:00
2011-08-03 14:25:20 -10:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-08-06 22:53:23 -07:00
2011-07-26 16:49:47 -07:00
2011-08-03 11:15:57 -04:00
2011-07-25 14:30:23 -04:00
2011-08-03 14:25:21 -10:00
2011-07-25 20:57:07 -07:00
2011-08-03 14:25:20 -10:00
2011-08-24 13:59:42 -04:00
2011-08-13 01:10:16 -07:00
2011-08-26 12:38:44 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-17 20:21:27 -07:00
2011-08-26 12:02:50 -04:00
2011-08-05 14:45:41 -04:00
2011-07-26 16:49:47 -07:00
2011-07-31 14:30:59 -10:00
2011-07-26 16:49:44 -07:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-07-28 01:32:04 -06:00
2011-07-28 01:32:04 -06:00
2011-07-25 17:24:47 +02:00
2011-07-26 16:49:47 -07:00
2011-07-29 21:53:30 +02:00
2011-07-26 16:49:47 -07:00
2011-07-27 13:21:40 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-24 11:50:34 +03:00
2011-08-26 12:02:50 -04:00
2011-07-25 20:57:15 -07:00
2011-07-23 17:57:36 -04:00
2011-08-26 12:02:50 -04:00
2011-08-03 11:15:56 -04:00
2011-08-03 14:25:24 -10:00
2011-07-25 20:57:08 -07:00
2011-09-15 15:36:34 -04:00
2011-08-08 12:11:02 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-24 22:06:04 +09:30
2011-07-24 22:06:04 +09:30
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-09-15 17:32:26 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-08-24 14:41:44 -04:00
2011-07-31 12:18:15 -04:00
2011-07-31 14:27:04 -10:00
2011-08-01 13:48:31 -10:00
2011-08-06 22:56:03 -07:00
2011-07-31 12:18:16 -04:00
2011-08-26 10:47:56 -04:00
2011-07-26 16:49:43 -07:00
2011-07-25 20:57:15 -07:00
2011-08-04 11:26:24 +01:00
2011-07-28 16:19:22 -06:00
2011-07-28 01:32:04 -06:00
2011-07-27 09:30:56 +08:00
2011-08-09 11:27:16 -06:00
2011-07-25 20:57:09 -07:00
2011-07-26 16:49:47 -07:00
2011-07-30 08:21:48 -10:00
2011-07-25 20:57:10 -07:00
2011-08-04 16:43:43 -10:00
2011-07-29 23:35:05 -07:00
2011-07-26 16:49:47 -07:00
2011-08-26 12:02:50 -04:00
2011-07-27 09:31:02 +08:00
2011-07-25 20:57:09 -07:00
2011-08-03 00:58:42 -04:00
2011-07-27 12:50:45 -07:00
2011-07-22 16:14:29 -07:00
2011-07-26 16:49:47 -07:00
2011-08-03 14:25:24 -10:00
2011-07-26 16:49:46 -07:00
2011-08-06 18:33:19 -07:00
2011-07-25 20:57:14 -07:00
2011-07-23 07:56:59 +01:00
2011-07-25 14:30:23 -04:00
2011-07-25 20:57:17 -07:00
2011-07-25 14:30:23 -04:00
2011-08-26 12:02:50 -04:00
2011-07-25 13:56:39 -07:00
2011-07-26 16:49:47 -07:00
2011-08-11 11:24:42 -07:00
2011-07-26 16:49:47 -07:00
2011-07-30 08:44:19 -10:00
2011-08-03 14:25:24 -10:00
2011-08-24 17:52:11 -07:00
2011-07-30 08:21:48 -10:00
2011-08-07 22:48:07 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-25 20:57:11 -07:00
2011-07-25 13:56:39 -07:00
2011-08-16 00:16:49 -07:00
2011-07-25 20:57:15 -07:00
2011-07-26 16:49:47 -07:00
2011-08-03 14:25:22 -10:00
2011-07-26 16:49:47 -07:00
2011-08-24 19:40:40 -07:00
2011-08-02 14:51:57 -04:00
2011-08-26 12:02:50 -04:00
2011-08-26 12:02:50 -04:00
2011-07-27 17:55:40 -03:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:45 -07:00
2011-07-25 20:57:15 -07:00
2011-07-28 08:01:18 +00:00
2011-07-26 16:49:47 -07:00
2011-08-26 12:02:50 -04:00