Commit 956e759
i40e: Fix missing rtnl locking when setting up pf switch
A recent change that made i40e use new udp_tunnel infrastructure
uses a method that expects to be called under rtnl lock.
However, not all codepaths do the lock prior to calling
i40e_setup_pf_switch.
Fix that by adding additional rtnl locking and unlocking.
Fixes: 40a98cb ("i40e: convert to new udp_tunnel infrastructure")
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 26b0ce8 commit 956e759
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
10571 | 10571 | | |
10572 | 10572 | | |
10573 | 10573 | | |
10574 | | - | |
| 10574 | + | |
10575 | 10575 | | |
10576 | 10576 | | |
10577 | 10577 | | |
| |||
14629 | 14629 | | |
14630 | 14630 | | |
14631 | 14631 | | |
| 14632 | + | |
14632 | 14633 | | |
14633 | 14634 | | |
14634 | 14635 | | |
14635 | | - | |
| 14636 | + | |
14636 | 14637 | | |
14637 | 14638 | | |
14638 | 14639 | | |
| |||
14734 | 14735 | | |
14735 | 14736 | | |
14736 | 14737 | | |
| 14738 | + | |
| 14739 | + | |
| 14740 | + | |
14737 | 14741 | | |
14738 | 14742 | | |
14739 | 14743 | | |
| 14744 | + | |
| 14745 | + | |
| 14746 | + | |
14740 | 14747 | | |
14741 | 14748 | | |
14742 | 14749 | | |
| |||
15530 | 15537 | | |
15531 | 15538 | | |
15532 | 15539 | | |
15533 | | - | |
| 15540 | + | |
15534 | 15541 | | |
15535 | 15542 | | |
15536 | 15543 | | |
| |||
0 commit comments