Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340545
b: refs/heads/master
c: 1511102
h: refs/heads/master
i:
  340543: bac38be
v: v3
  • Loading branch information
Flavio Leitner authored and David S. Miller committed Oct 31, 2012
1 parent 0dca1aa commit febc290
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0683e707c12a431919e1be814e15a4360523533
refs/heads/master: 15111025f68e0ecb6cdc56789805706b3b550912
7 changes: 7 additions & 0 deletions trunk/drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ netxen_nic_get_pauseparam(struct net_device *dev,
__u32 val;
int port = adapter->physical_port;

pause->autoneg = 0;

if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
if ((port < 0) || (port >= NETXEN_NIU_MAX_GBE_PORTS))
return;
Expand Down Expand Up @@ -532,6 +534,11 @@ netxen_nic_set_pauseparam(struct net_device *dev,
struct netxen_adapter *adapter = netdev_priv(dev);
__u32 val;
int port = adapter->physical_port;

/* not supported */
if (pause->autoneg)
return -EINVAL;

/* read mode */
if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
if ((port < 0) || (port >= NETXEN_NIU_MAX_GBE_PORTS))
Expand Down

0 comments on commit febc290

Please sign in to comment.