Only report pause frame configuration for physical device. Logical port of both PCI PF and PCI VF do not support it.
Unified · Split
| @@ -289,8 +289,6 @@ nfp_net_get_link_ksettings(struct net_device *netdev, · 288 unmodified lines | ||
| 289 | 289 | |
| 290 | 290 | /* Init to unknowns */ |
| 291 | 291 | ethtool_link_ksettings_add_link_mode(cmd, supported, FIBRE); |
| 292 | − ethtool_link_ksettings_add_link_mode(cmd, supported, Pause); | |
| 293 | − ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); | |
| 294 | 292 | cmd->base.port = PORT_OTHER; |
| 295 | 293 | cmd->base.speed = SPEED_UNKNOWN; |
| 296 | 294 | cmd->base.duplex = DUPLEX_UNKNOWN; |
| @@ -298,6 +296,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev, · 1 unmodified line | ||
| 298 | 296 | port = nfp_port_from_netdev(netdev); |
| 299 | 297 | eth_port = nfp_port_get_eth_port(port); |
| 300 | 298 | if (eth_port) { |
| 299 | + ethtool_link_ksettings_add_link_mode(cmd, supported, Pause); | |
| 300 | + ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); | |
| 301 | 301 | cmd->base.autoneg = eth_port->aneg != NFP_ANEG_DISABLED ? |
| 302 | 302 | AUTONEG_ENABLE : AUTONEG_DISABLE; |
| 303 | 303 | nfp_net_set_fec_link_mode(eth_port, cmd); |