Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121913
b: refs/heads/master
c: 39a11bd
h: refs/heads/master
i:
  121911: 7c26c5b
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 20, 2008
1 parent 6b42236 commit 60efe99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 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: 0e7614bc3df034e2f92e0d424cc6f81dcdb7af65
refs/heads/master: 39a11bd9102cf8601f02d595dc022b715103afde
24 changes: 14 additions & 10 deletions trunk/drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,19 @@ static int velocity_soft_reset(struct velocity_info *vptr)
return 0;
}

static const struct net_device_ops velocity_netdev_ops = {
.ndo_open = velocity_open,
.ndo_stop = velocity_close,
.ndo_get_stats = velocity_get_stats,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_multicast_list = velocity_set_multi,
.ndo_change_mtu = velocity_change_mtu,
.ndo_do_ioctl = velocity_ioctl,
.ndo_vlan_rx_add_vid = velocity_vlan_rx_add_vid,
.ndo_vlan_rx_kill_vid = velocity_vlan_rx_kill_vid,
.ndo_vlan_rx_register = velocity_vlan_rx_register,
};

/**
* velocity_found1 - set up discovered velocity card
* @pdev: PCI device
Expand Down Expand Up @@ -958,18 +971,9 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
vptr->phy_id = MII_GET_PHY_ID(vptr->mac_regs);

dev->irq = pdev->irq;
dev->open = velocity_open;
dev->hard_start_xmit = velocity_xmit;
dev->stop = velocity_close;
dev->get_stats = velocity_get_stats;
dev->set_multicast_list = velocity_set_multi;
dev->do_ioctl = velocity_ioctl;
dev->netdev_ops = &velocity_netdev_ops;
dev->ethtool_ops = &velocity_ethtool_ops;
dev->change_mtu = velocity_change_mtu;

dev->vlan_rx_add_vid = velocity_vlan_rx_add_vid;
dev->vlan_rx_kill_vid = velocity_vlan_rx_kill_vid;
dev->vlan_rx_register = velocity_vlan_rx_register;

#ifdef VELOCITY_ZERO_COPY_SUPPORT
dev->features |= NETIF_F_SG;
Expand Down

0 comments on commit 60efe99

Please sign in to comment.