Commit 5be8308b authored by Mitch Williams's avatar Mitch Williams Committed by Jeff Kirsher

i40evf: speed up init

Shorten up the delays in the init task, allowing the VF driver to
initialize faster. This aids performance in load/unload tests and
mitigates DMAR errors in VF enable/disable tests with absurdly short
delays. In the real world, the VF driver will come up more quickly.

The original values were set conservatively based on what we expected
from the firmware in terms of performance. Now that the driver is in use
and we know how well firmware responds to our requests, we can shorten
these delays.

Change-ID: Ibead77d34b19e8170e667c3f58bc14748bbc5bc9
Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent a9165490
...@@ -2315,7 +2315,7 @@ static void i40evf_init_task(struct work_struct *work) ...@@ -2315,7 +2315,7 @@ static void i40evf_init_task(struct work_struct *work)
} }
return; return;
restart: restart:
schedule_delayed_work(&adapter->init_task, msecs_to_jiffies(30)); schedule_delayed_work(&adapter->init_task, msecs_to_jiffies(20));
return; return;
err_register: err_register:
...@@ -2332,7 +2332,7 @@ static void i40evf_init_task(struct work_struct *work) ...@@ -2332,7 +2332,7 @@ static void i40evf_init_task(struct work_struct *work)
adapter->flags |= I40EVF_FLAG_PF_COMMS_FAILED; adapter->flags |= I40EVF_FLAG_PF_COMMS_FAILED;
return; /* do not reschedule */ return; /* do not reschedule */
} }
schedule_delayed_work(&adapter->init_task, HZ * 3); schedule_delayed_work(&adapter->init_task, HZ / 2);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment