Commit aa54d84
i40e: Fix devlink port unregistering
Ensure that devlink port is unregistered after unregistering
of net device.
Reproducer:
[root@host ~]# rmmod i40e
[ 4742.939386] i40e 0000:02:00.1: i40e_ptp_stop: removed PHC on enp2s0f1np1
[ 4743.059269] ------------[ cut here ]------------
[ 4743.063900] WARNING: CPU: 21 PID: 10766 at net/devlink/port.c:1078 devl_port_unregister+0x69/0x80
...
Fixes: 9e479d6 ("i40e: Add initial devlink support")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent e96fe28 commit aa54d84
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14213 | 14213 | | |
14214 | 14214 | | |
14215 | 14215 | | |
14216 | | - | |
14217 | | - | |
| 14216 | + | |
14218 | 14217 | | |
14219 | 14218 | | |
14220 | 14219 | | |
| |||
14228 | 14227 | | |
14229 | 14228 | | |
14230 | 14229 | | |
| 14230 | + | |
| 14231 | + | |
| 14232 | + | |
14231 | 14233 | | |
14232 | 14234 | | |
14233 | 14235 | | |
| |||
14402 | 14404 | | |
14403 | 14405 | | |
14404 | 14406 | | |
14405 | | - | |
14406 | | - | |
14407 | 14407 | | |
14408 | 14408 | | |
14409 | 14409 | | |
14410 | 14410 | | |
14411 | 14411 | | |
14412 | 14412 | | |
| 14413 | + | |
| 14414 | + | |
14413 | 14415 | | |
14414 | 14416 | | |
14415 | 14417 | | |
| |||
0 commit comments