Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85589
b: refs/heads/master
c: 7bc56b9
h: refs/heads/master
i:
  85587: e58f31a
v: v3
  • Loading branch information
Masakazu Mokuno authored and Jeff Garzik committed Feb 11, 2008
1 parent 23ca6ff commit c327f5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59e973277cf942a1eac6d83802d6c9d1f397566b
refs/heads/master: 7bc56b92b025c13f8d3c9b049ed816db464fb0b5
43 changes: 3 additions & 40 deletions trunk/drivers/net/ps3_gelic_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,28 +1196,6 @@ static int gelic_ether_get_settings(struct net_device *netdev,
return 0;
}

static u32 gelic_ether_get_link(struct net_device *netdev)
{
struct gelic_card *card = netdev_priv(netdev);
int status;
u64 v1, v2;
int link;

status = lv1_net_control(bus_id(card), dev_id(card),
GELIC_LV1_GET_ETH_PORT_STATUS,
GELIC_LV1_VLAN_TX_ETHERNET, 0, 0,
&v1, &v2);
if (status)
return 0; /* link down */

if (v1 & GELIC_LV1_ETHER_LINK_UP)
link = 1;
else
link = 0;

return link;
}

static int gelic_net_nway_reset(struct net_device *netdev)
{
if (netif_running(netdev)) {
Expand All @@ -1227,21 +1205,6 @@ static int gelic_net_nway_reset(struct net_device *netdev)
return 0;
}

static u32 gelic_net_get_tx_csum(struct net_device *netdev)
{
return (netdev->features & NETIF_F_IP_CSUM) != 0;
}

static int gelic_net_set_tx_csum(struct net_device *netdev, u32 data)
{
if (data)
netdev->features |= NETIF_F_IP_CSUM;
else
netdev->features &= ~NETIF_F_IP_CSUM;

return 0;
}

static u32 gelic_net_get_rx_csum(struct net_device *netdev)
{
struct gelic_card *card = netdev_priv(netdev);
Expand All @@ -1260,10 +1223,10 @@ static int gelic_net_set_rx_csum(struct net_device *netdev, u32 data)
static struct ethtool_ops gelic_net_ethtool_ops = {
.get_drvinfo = gelic_net_get_drvinfo,
.get_settings = gelic_ether_get_settings,
.get_link = gelic_ether_get_link,
.get_link = ethtool_op_get_link,
.nway_reset = gelic_net_nway_reset,
.get_tx_csum = gelic_net_get_tx_csum,
.set_tx_csum = gelic_net_set_tx_csum,
.get_tx_csum = ethtool_op_get_tx_csum,
.set_tx_csum = ethtool_op_set_tx_csum,
.get_rx_csum = gelic_net_get_rx_csum,
.set_rx_csum = gelic_net_set_rx_csum,
};
Expand Down

0 comments on commit c327f5c

Please sign in to comment.