Jakub Kicinski
c55ca688ed
nfp: don't depend on eth_tbl being available
...
For very very old generation of the management FW Ethernet port
information table may theoretically not be available. This in
turn will cause the nfp_port structures to not be allocated.
Make sure we don't crash the kernel when there is no eth_tbl:
RIP: 0010:nfp_net_pci_probe+0xf2/0xb40 [nfp]
...
Call Trace:
nfp_pci_probe+0x6de/0xab0 [nfp]
local_pci_probe+0x47/0xa0
work_for_cpu_fn+0x1a/0x30
process_one_work+0x1de/0x3e0
Found while working with broken/development version of management FW.
Fixes: a5950182c0 ("nfp: map mac_stats and vf_cfg BARs")
Fixes: 93da7d9660 ("nfp: provide nfp_port to of nfp_net_get_mac_addr()")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com >
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-04-27 11:15:10 -04:00
..
2017-11-02 11:10:55 +01:00
2018-04-12 11:04:35 -07:00
2018-04-03 17:42:25 -07:00
2018-04-19 13:41:49 -04:00
2018-03-13 18:16:38 +01:00
2018-04-11 10:28:31 -07:00
2018-04-16 09:38:40 +02:00
2018-04-01 21:43:02 +03:00
2018-04-06 18:31:06 -07:00
2018-03-09 08:06:35 -07:00
2018-04-21 21:20:48 -07:00
2018-04-13 15:51:06 -07:00
2018-04-19 13:21:35 +02:00
2018-04-10 08:40:45 +02:00
2018-04-09 11:54:57 +02:00
2018-04-07 19:04:02 +09:00
2018-04-19 15:11:50 -07:00
2015-11-16 09:27:32 +05:30
2017-11-02 11:10:55 +01:00
2018-04-10 12:14:37 -07:00
2018-04-05 14:21:13 -07:00
2018-04-04 20:07:20 -07:00
2018-04-13 16:32:16 -07:00
2018-03-27 09:51:22 +02:00
2018-03-14 19:13:47 +01:00
2018-03-14 19:11:01 +01:00
2018-04-05 21:03:42 -07:00
2018-04-22 17:14:29 -07:00
2018-04-19 09:25:15 +02:00
2018-04-09 11:42:31 -07:00
2018-04-09 19:59:54 -07:00
2017-11-17 20:16:20 -08:00
2018-04-04 20:07:20 -07:00
2018-04-11 23:33:46 +02:00
2018-04-05 14:27:02 -07:00
2017-11-13 01:34:14 +01:00
2018-04-05 09:51:41 -07:00
2018-04-06 17:35:43 -07:00
2018-04-13 16:20:36 -07:00
2018-04-11 18:50:41 -07:00
2017-05-18 16:59:06 +02:00
2018-04-11 18:50:41 -07:00
2018-04-12 21:46:10 -04:00
2018-03-29 17:29:09 -06:00
2018-04-07 12:08:19 -07:00
2018-04-20 10:39:44 -07:00
2018-04-10 12:09:27 -07:00
2017-11-29 10:16:44 +00:00
2018-03-26 11:13:09 +02:00
2018-04-10 22:25:07 -07:00
2018-04-12 10:21:19 -07:00
2018-04-20 10:41:31 -07:00
2018-04-11 16:39:34 -07:00
2018-04-27 11:15:10 -04:00
2017-11-21 15:57:09 -08:00
2018-01-28 22:17:24 -05:00
2018-04-19 15:10:56 -07:00
2018-04-12 09:58:27 -06:00
2018-04-04 20:07:20 -07:00
2018-04-15 17:21:30 -07:00
2018-03-29 15:07:48 -04:00
2018-03-27 18:52:22 +02:00
2018-04-04 20:07:20 -07:00
2018-04-11 08:46:50 -05:00
2018-04-09 09:26:36 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 09:51:41 -07:00
2018-04-13 16:20:36 -07:00
2018-04-05 21:21:08 -07:00
2018-03-14 17:53:06 +01:00
2018-02-11 14:34:03 -08:00
2018-04-13 15:46:21 -07:00
2018-04-20 17:18:35 -07:00
2018-03-28 10:33:53 +08:00
2018-04-05 22:53:16 -07:00
2018-03-27 11:03:43 +02:00
2018-03-27 21:54:37 -07:00
2018-04-10 10:22:27 -07:00
2018-04-22 14:42:32 -04:00
2018-04-01 20:07:00 -04:00
2018-04-15 17:24:12 -07:00
2017-07-20 11:37:58 +02:00
2018-02-08 10:21:39 +01:00
2013-01-03 15:57:16 -08:00
2018-04-13 15:51:06 -07:00
2018-04-03 12:06:21 -07:00
2018-03-13 18:48:29 +02:00
2018-04-11 10:28:39 -07:00
2018-04-05 14:27:02 -07:00
2018-03-06 11:03:55 +01:00
2018-04-13 14:11:53 +08:00
2018-04-09 09:04:10 -07:00
2018-03-06 09:57:17 -08:00
2018-04-07 11:11:41 -07:00
2018-04-06 19:44:27 -07:00
2018-04-11 10:54:06 -04:00
2018-04-10 10:20:00 -07:00
2018-02-11 14:34:03 -08:00
2018-04-11 18:58:27 -07:00
2018-04-16 10:22:40 +02:00
2018-04-20 08:36:04 -07:00
2018-03-29 13:38:10 +03:00
2018-02-06 09:59:40 -08:00