OSDN Git Service

ionic: stop devlink warn on mgmt device
authorShannon Nelson <snelson@pensando.io>
Tue, 17 Mar 2020 03:22:06 +0000 (20:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 04:18:25 +0000 (21:18 -0700)
commitecd2d8b0fb18d9b8e31ca577258e0282cb63fc91
tree674ccae9c69f4c9007f661a00cb55dbbadd03073
parentc7cba8326c1eba1f49f39a71cd9ef03a03a80da4
ionic: stop devlink warn on mgmt device

If we don't set a port type, the devlink code will eventually
print a WARN in the kernel log.  Because the mgmt device is
not really a useful port, don't register it as a devlink port.

Fixes: b3f064e9746d ("ionic: add support for device id 0x1004")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_devlink.c