• Ivan Vecera's avatar
    i40e: Do not call devlink_port_type_clear() · e96fe283
    Ivan Vecera authored
    Do not call devlink_port_type_clear() prior devlink port unregister
    and let devlink core to take care about it.
    
    Reproducer:
    [root@host ~]# rmmod i40e
    [ 4539.964699] i40e 0000:02:00.0: devlink port type for port 0 cleared without a software interface reference, device type not supported by the kernel?
    [ 4540.319811] i40e 0000:02:00.1: devlink port type for port 1 cleared without a software interface reference, device type not supported by the kernel?
    
    Fixes: 9e479d64 ("i40e: Add initial devlink support")
    Signed-off-by: default avatarIvan Vecera <ivecera@redhat.com>
    Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
    Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    e96fe283
i40e_devlink.c 5.87 KB