diff options
| author | Dawid Wesierski <[email protected]> | 2023-03-01 10:57:05 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2023-03-21 18:37:16 +0000 |
| commit | 5a9b7bfb0d15e0877115b8fa6992ebc59855c5d7 (patch) | |
| tree | 6f122cfff5284c356e787e6133624ca569b4f1c3 /net/unix/af_unix.c | |
| parent | igb: refactor igb_ptp_adjfine_82580 to use diff_by_scaled_ppm (diff) | |
| download | kernel-5a9b7bfb0d15e0877115b8fa6992ebc59855c5d7.tar.gz kernel-5a9b7bfb0d15e0877115b8fa6992ebc59855c5d7.zip | |
igbvf: add PCI reset handler functions
There was a problem with resuming ping after conducting a PCI reset.
This commit adds two functions, igbvf_io_prepare and igbvf_io_done,
which, after being added to the pci_error_handlers struct,
will prepare the drivers for a PCI reset and then bring the interface up
and reset it after. This will prevent the driver from ending up in
incorrect state. Test_and_set_bit is highly reliable in this context,
so we are not including a timeout in this commit
This introduces 900ms - 1100ms of overhead to this operation but it's in
non-time-critical flow. And also allows the driver to continue
functioning after the reset.
Functionality documented in ethernet-controller-i350-datasheet 4.2.1.3
https://www.intel.com/content/www/us/en/products/details/ethernet/gigabit-controllers/i350-controllers/docs.html
Signed-off-by: Dawid Wesierski <[email protected]>
Signed-off-by: Kamil Maziarz <[email protected]>
Reviewed-by: Michal Kubiak <[email protected]>
Tested-by: Marek Szlosek <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
