|
|
@@ -4335,6 +4335,11 @@ static void cfg_queues(struct adapter *adap)
|
|
|
#endif
|
|
|
int ciq_size;
|
|
|
|
|
|
+ /* Reduce memory usage in kdump environment, disable all offload.
|
|
|
+ */
|
|
|
+ if (is_kdump_kernel())
|
|
|
+ adap->params.offload = 0;
|
|
|
+
|
|
|
for_each_port(adap, i)
|
|
|
n10g += is_x_10g_port(&adap2pinfo(adap, i)->link_cfg);
|
|
|
#ifdef CONFIG_CHELSIO_T4_DCB
|
|
|
@@ -4365,11 +4370,6 @@ static void cfg_queues(struct adapter *adap)
|
|
|
if (q10g > netif_get_num_default_rss_queues())
|
|
|
q10g = netif_get_num_default_rss_queues();
|
|
|
|
|
|
- /* Reduce memory usage in kdump environment, disable all offload.
|
|
|
- */
|
|
|
- if (is_kdump_kernel())
|
|
|
- adap->params.offload = 0;
|
|
|
-
|
|
|
for_each_port(adap, i) {
|
|
|
struct port_info *pi = adap2pinfo(adap, i);
|
|
|
|