devlink: fix condition for compat device info
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 11 Feb 2019 03:35:27 +0000 (19:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 04:39:55 +0000 (20:39 -0800)
commit3ceb745baa4c90eb34dee983053fcbd2d8825a20
tree9dd8f0c91c2b0b05bd9310a0ab60401c611650fd
parentb904aada8033749558e3aaeb574a2200bf0458f0
devlink: fix condition for compat device info

We need the port to be both ethernet and have the rigth netdev,
not one or the other.

Fixes: ddb6e99e2db1 ("ethtool: add compat for devlink info")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c