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: ddb6e99e ("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>
Showing
Please register or sign in to comment