nfp: only report pause frame configuration for physical device
authorYu Xiao <yu.xiao@corigine.com>
Fri, 27 May 2022 18:24:24 +0000 (20:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 May 2022 11:44:34 +0000 (12:44 +0100)
commit0649e4d63420ebc8cbebef3e9d39e12ffc5eb9fa
treedebf0d84aaeaa659f0ebf3bfcf36604e13845121
parentd8064c10560d53a841b08ab2e11dbd5d28873955
nfp: only report pause frame configuration for physical device

Only report pause frame configuration for physical device. Logical
port of both PCI PF and PCI VF do not support it.

Fixes: 9fdc5d85a8fe ("nfp: update ethtool reporting of pauseframe control")
Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c