The hardware doesn't support controlling pause frames autoneg, so
report that back correctly to userspace.
Signed-off-by: Flavio Leitner <redacted>
---
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c | 6 ++++++
1 file changed, 6 insertions(+)
I don't have the hardware handy to test this, so I appreciate
if someone could do it.
From: Ben Hutchings <hidden> Date: 2012-10-26 21:10:46
On Fri, 2012-10-26 at 15:17 -0200, Flavio Leitner wrote:
quoted hunk
The hardware doesn't support controlling pause frames autoneg, so
report that back correctly to userspace.
Signed-off-by: Flavio Leitner <redacted>
---
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c | 6 ++++++
1 file changed, 6 insertions(+)
I don't have the hardware handy to test this, so I appreciate
if someone could do it.
AUTONEG_DISABLE is really meant for use in ethtool_cmd::autoneg, not
ethtool_pauseparam::autoneg. (Though they are both really booleans so
this works in practice.)
quoted hunk
if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
if ((port < 0) || (port >= NETXEN_NIU_MAX_GBE_PORTS))
return;
@@ -532,6 +534,10 @@ netxen_nic_set_pauseparam(struct net_device *dev, struct netxen_adapter *adapter = netdev_priv(dev); __u32 val; int port = adapter->physical_port;++ if (pause->autoneg)+ return -EOPNOTSUPP;
Should be -EINVAL; the operation (ETHTOOL_SPAUSEPARAM) is supported but
not these particular arguments.
Ben.
/* read mode */
if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
if ((port < 0) || (port >= NETXEN_NIU_MAX_GBE_PORTS))
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
On Fri, 26 Oct 2012 22:10:42 +0100
Ben Hutchings [off-list ref] wrote:
On Fri, 2012-10-26 at 15:17 -0200, Flavio Leitner wrote:
quoted
The hardware doesn't support controlling pause frames autoneg, so
report that back correctly to userspace.
Signed-off-by: Flavio Leitner <redacted>
---
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c | 6 ++++++
1 file changed, 6 insertions(+)
I don't have the hardware handy to test this, so I appreciate
if someone could do it.
AUTONEG_DISABLE is really meant for use in ethtool_cmd::autoneg, not
ethtool_pauseparam::autoneg. (Though they are both really booleans so
this works in practice.)
I saw few places using it. I will change to 0 instead, though as the
meaning for both use-cases are the same (auto negotiation being enabled or
disabled) and probably won't change, maybe we could just share.
quoted
if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
if ((port < 0) || (port >= NETXEN_NIU_MAX_GBE_PORTS))
return;
@@ -532,6 +534,10 @@ netxen_nic_set_pauseparam(struct net_device *dev, struct netxen_adapter *adapter = netdev_priv(dev); __u32 val; int port = adapter->physical_port;++ if (pause->autoneg)+ return -EOPNOTSUPP;
Should be -EINVAL; the operation (ETHTOOL_SPAUSEPARAM) is supported but
not these particular arguments.