提交 78f710dc 编写于 作者: M Masakazu Mokuno 提交者: Jeff Garzik

ps3: removed conditional ethtool support

Removed conditional ethtool support.  Always enabled.
Signed-off-by: NMasakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 b3bd6fe9
...@@ -1160,7 +1160,6 @@ static int gelic_net_open(struct net_device *netdev) ...@@ -1160,7 +1160,6 @@ static int gelic_net_open(struct net_device *netdev)
return -ENOMEM; return -ENOMEM;
} }
#ifdef GELIC_NET_ETHTOOL
static void gelic_net_get_drvinfo (struct net_device *netdev, static void gelic_net_get_drvinfo (struct net_device *netdev,
struct ethtool_drvinfo *info) struct ethtool_drvinfo *info)
{ {
...@@ -1280,7 +1279,6 @@ static struct ethtool_ops gelic_net_ethtool_ops = { ...@@ -1280,7 +1279,6 @@ static struct ethtool_ops gelic_net_ethtool_ops = {
.get_rx_csum = gelic_net_get_rx_csum, .get_rx_csum = gelic_net_get_rx_csum,
.set_rx_csum = gelic_net_set_rx_csum, .set_rx_csum = gelic_net_set_rx_csum,
}; };
#endif
/** /**
* gelic_net_tx_timeout_task - task scheduled by the watchdog timeout * gelic_net_tx_timeout_task - task scheduled by the watchdog timeout
...@@ -1348,9 +1346,7 @@ static void gelic_net_setup_netdev_ops(struct net_device *netdev) ...@@ -1348,9 +1346,7 @@ static void gelic_net_setup_netdev_ops(struct net_device *netdev)
/* NAPI */ /* NAPI */
netdev->poll = &gelic_net_poll; netdev->poll = &gelic_net_poll;
netdev->weight = GELIC_NET_NAPI_WEIGHT; netdev->weight = GELIC_NET_NAPI_WEIGHT;
#ifdef GELIC_NET_ETHTOOL
netdev->ethtool_ops = &gelic_net_ethtool_ops; netdev->ethtool_ops = &gelic_net_ethtool_ops;
#endif
} }
/** /**
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#ifndef _GELIC_NET_H #ifndef _GELIC_NET_H
#define _GELIC_NET_H #define _GELIC_NET_H
#define GELIC_NET_ETHTOOL /* use ethtool */
/* descriptors */ /* descriptors */
#define GELIC_NET_RX_DESCRIPTORS 128 /* num of descriptors */ #define GELIC_NET_RX_DESCRIPTORS 128 /* num of descriptors */
#define GELIC_NET_TX_DESCRIPTORS 128 /* num of descriptors */ #define GELIC_NET_TX_DESCRIPTORS 128 /* num of descriptors */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册