Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141121
b: refs/heads/master
c: 559990c
h: refs/heads/master
i:
  141119: 9336457
v: v3
  • Loading branch information
Mithlesh Thukral authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent e7eceff commit b0761c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 33 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: b62a294f97be4072171189510f34bb545364395e
refs/heads/master: 559990c6885d988605e247981234a29ba0b2b2c9
23 changes: 2 additions & 21 deletions trunk/drivers/staging/sxg/sxg.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ void sxg_collect_statistics(struct adapter_t *adapter);

#if XXXTODO
static int sxg_mac_set_address(struct net_device *dev, void *ptr);
static void sxg_unmap_mmio_space(struct adapter_t *adapter);
#endif
static void sxg_mcast_set_list(struct net_device *dev);

Expand Down Expand Up @@ -3218,35 +3217,17 @@ static void sxg_mcast_set_list(struct net_device *dev)
struct adapter_t *adapter = (struct adapter_t *) netdev_priv(dev);

ASSERT(adapter);
if (dev->flags & IFF_PROMISC) {
if (dev->flags & IFF_PROMISC)
adapter->MacFilter |= MAC_PROMISC;
}

if (dev->flags & IFF_MULTICAST)
adapter->MacFilter |= MAC_MCAST;

if (dev->flags & IFF_ALLMULTI) {
if (dev->flags & IFF_ALLMULTI)
adapter->MacFilter |= MAC_ALLMCAST;
}

//XXX handle other flags as well
sxg_set_mcast_addr(adapter);
}

#if XXXTODO
static void sxg_unmap_mmio_space(struct adapter_t *adapter)
{
#if LINUX_FREES_ADAPTER_RESOURCES
/*
* if (adapter->Regs) {
* iounmap(adapter->Regs);
* }
* adapter->slic_regs = NULL;
*/
#endif
}
#endif

void sxg_free_sgl_buffers(struct adapter_t *adapter)
{
struct list_entry *ple;
Expand Down
12 changes: 1 addition & 11 deletions trunk/drivers/staging/sxg/sxg_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ sxg_nic_get_strings(struct net_device *netdev, u32 stringset, u8 * data)

switch(stringset) {
case ETH_SS_TEST:
/* return -EOPNOTSUPP; */
break;
case ETH_SS_STATS:
for (index = 0; index < SXG_NIC_STATS_LEN; index++) {
Expand Down Expand Up @@ -257,14 +256,6 @@ static void sxg_nic_get_regs(struct net_device *netdev,
memcpy((buff+sizeof(struct sxg_hw_regs)), UcodeRegs, sizeof(struct sxg_ucode_regs));
}

static void sxg_nic_get_wol(struct net_device *netdev,
struct ethtool_wolinfo *wol)
{
/* We dont support wake-on-lan */
wol->supported = 0;
memset(&wol->sopass, 0, sizeof(wol->sopass));
}

static int sxg_nic_get_eeprom_len(struct net_device *netdev)
{
return (USER_VIEWABLE_EEPROM_SIZE);
Expand Down Expand Up @@ -315,10 +306,9 @@ struct ethtool_ops sxg_nic_ethtool_ops = {
.get_regs_len = sxg_nic_get_regs_len,
.get_regs = sxg_nic_get_regs,
.get_link = ethtool_op_get_link,
.get_wol = sxg_nic_get_wol,
// .get_wol = sxg_nic_get_wol,
.get_eeprom_len = sxg_nic_get_eeprom_len,
.get_eeprom = sxg_nic_get_eeprom,
// .get_ringparam = sxg_nic_get_ringparam,
// .get_pauseparam = sxg_nic_get_pauseparam,
// .set_pauseparam = sxg_nic_set_pauseparam,
.set_tx_csum = ethtool_op_set_tx_csum,
Expand Down

0 comments on commit b0761c3

Please sign in to comment.