diff options
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 7 | ||||
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/cmd.c | 3 | ||||
| -rw-r--r-- | drivers/net/xen-netfront.c | 5 |
3 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 96208f17bb53..2db653225a0e 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c | |||
| @@ -2658,16 +2658,11 @@ static int mvneta_stop(struct net_device *dev) | |||
| 2658 | static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | 2658 | static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) |
| 2659 | { | 2659 | { |
| 2660 | struct mvneta_port *pp = netdev_priv(dev); | 2660 | struct mvneta_port *pp = netdev_priv(dev); |
| 2661 | int ret; | ||
| 2662 | 2661 | ||
| 2663 | if (!pp->phy_dev) | 2662 | if (!pp->phy_dev) |
| 2664 | return -ENOTSUPP; | 2663 | return -ENOTSUPP; |
| 2665 | 2664 | ||
| 2666 | ret = phy_mii_ioctl(pp->phy_dev, ifr, cmd); | 2665 | return phy_mii_ioctl(pp->phy_dev, ifr, cmd); |
| 2667 | if (!ret) | ||
| 2668 | mvneta_adjust_link(dev); | ||
| 2669 | |||
| 2670 | return ret; | ||
| 2671 | } | 2666 | } |
| 2672 | 2667 | ||
| 2673 | /* Ethtool methods */ | 2668 | /* Ethtool methods */ |
diff --git a/drivers/net/ethernet/mellanox/mlx4/cmd.c b/drivers/net/ethernet/mellanox/mlx4/cmd.c index 3350721bf515..546ca4226916 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx4/cmd.c | |||
| @@ -724,7 +724,8 @@ static int mlx4_cmd_wait(struct mlx4_dev *dev, u64 in_param, u64 *out_param, | |||
| 724 | * on the host, we deprecate the error message for this | 724 | * on the host, we deprecate the error message for this |
| 725 | * specific command/input_mod/opcode_mod/fw-status to be debug. | 725 | * specific command/input_mod/opcode_mod/fw-status to be debug. |
| 726 | */ | 726 | */ |
| 727 | if (op == MLX4_CMD_SET_PORT && in_modifier == 1 && | 727 | if (op == MLX4_CMD_SET_PORT && |
| 728 | (in_modifier == 1 || in_modifier == 2) && | ||
| 728 | op_modifier == 0 && context->fw_status == CMD_STAT_BAD_SIZE) | 729 | op_modifier == 0 && context->fw_status == CMD_STAT_BAD_SIZE) |
| 729 | mlx4_dbg(dev, "command 0x%x failed: fw status = 0x%x\n", | 730 | mlx4_dbg(dev, "command 0x%x failed: fw status = 0x%x\n", |
| 730 | op, context->fw_status); | 731 | op, context->fw_status); |
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index e9b960f0ff32..720aaf6313d2 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
| @@ -1008,8 +1008,7 @@ err: | |||
| 1008 | 1008 | ||
| 1009 | static int xennet_change_mtu(struct net_device *dev, int mtu) | 1009 | static int xennet_change_mtu(struct net_device *dev, int mtu) |
| 1010 | { | 1010 | { |
| 1011 | int max = xennet_can_sg(dev) ? | 1011 | int max = xennet_can_sg(dev) ? XEN_NETIF_MAX_TX_SIZE : ETH_DATA_LEN; |
| 1012 | XEN_NETIF_MAX_TX_SIZE - MAX_TCP_HEADER : ETH_DATA_LEN; | ||
| 1013 | 1012 | ||
| 1014 | if (mtu > max) | 1013 | if (mtu > max) |
| 1015 | return -EINVAL; | 1014 | return -EINVAL; |
| @@ -1279,8 +1278,6 @@ static struct net_device *xennet_create_dev(struct xenbus_device *dev) | |||
| 1279 | netdev->ethtool_ops = &xennet_ethtool_ops; | 1278 | netdev->ethtool_ops = &xennet_ethtool_ops; |
| 1280 | SET_NETDEV_DEV(netdev, &dev->dev); | 1279 | SET_NETDEV_DEV(netdev, &dev->dev); |
| 1281 | 1280 | ||
| 1282 | netif_set_gso_max_size(netdev, XEN_NETIF_MAX_TX_SIZE - MAX_TCP_HEADER); | ||
| 1283 | |||
| 1284 | np->netdev = netdev; | 1281 | np->netdev = netdev; |
| 1285 | 1282 | ||
| 1286 | netif_carrier_off(netdev); | 1283 | netif_carrier_off(netdev); |
