Upstream fixes, added support for Linux kernel >= 5.12, build on Debian bullseye too #2

Merged
DataHoarder merged 6 commits from test-debian-bullseye into master 2021-08-04 04:18:39 +00:00

6 commits

Author SHA1 Message Date
DataHoarder bcbbdc162b Change DRV_VERSION to 0.27.1-gs-patched to indicate driver is not vanilla
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-08-04 04:40:17 +02:00
DataHoarder d701c1f0c7 fm10k: convert to new udp_tunnel_nic infra (support kernel >= 5.12.0)
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed
Straightforward conversion to new infra. Driver restores info
after close/open cycle by calling its internal restore function
so just use that, no need for udp_tunnel_nic_reset_ntf() here.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Based off linux commit f7529b4ba3c98470b0e367ba447ad0da84dc308c
2021-08-04 04:16:43 +02:00
Christophe JAILLET 279ad02edf fm10k: Fix an error handling path in 'fm10k_probe()'
If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it
must be undone by a corresponding 'pci_disable_pcie_error_reporting()'
call, as already done in the remove function.

Fixes: 19ae1b3fb99c ("fm10k: Add support for PCI power management and error handling")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-08-04 03:58:20 +02:00
Jesse Brandeburg 9221eea3b0 fm10k: move error check
The error check and set_bit are placed in such a way that sparse (C=2)
warns:
.../fm10k_pci.c:1395:9: warning: context imbalance in 'fm10k_msix_mbx_pf' - different lock contexts for basic block

Which seems a little odd, but the code can obviously be moved
to where the variable is being set without changing functionality
at all, and it even seems to make a bit more sense with the check
closer to the set.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-08-04 03:57:36 +02:00
Gustavo A. R. Silva 397b5258ed fm10k: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding a couple of break statements instead of
just letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-08-04 03:56:10 +02:00
DataHoarder 991ddf05f2 Add debian bullseye to build targets
Some checks failed
continuous-integration/drone/push Build is failing
2021-08-04 03:49:00 +02:00