Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300540
b: refs/heads/master
c: 32e819e
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu committed Apr 7, 2012
1 parent f2a1398 commit 7670789
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 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: c514f285c37fc705e59956ae0b9fc79d28905d3b
refs/heads/master: 32e819e46e028ec5901048baee66775d71c4ec51
18 changes: 7 additions & 11 deletions trunk/drivers/net/ethernet/neterion/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1882,25 +1882,24 @@ static int vxge_poll_inta(struct napi_struct *napi, int budget)
*/
static void vxge_netpoll(struct net_device *dev)
{
struct __vxge_hw_device *hldev;
struct vxgedev *vdev;

vdev = netdev_priv(dev);
hldev = pci_get_drvdata(vdev->pdev);
struct vxgedev *vdev = netdev_priv(dev);
struct pci_dev *pdev = vdev->pdev;
struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
const int irq = pdev->irq;

vxge_debug_entryexit(VXGE_TRACE, "%s:%d", __func__, __LINE__);

if (pci_channel_offline(vdev->pdev))
if (pci_channel_offline(pdev))
return;

disable_irq(dev->irq);
disable_irq(irq);
vxge_hw_device_clear_tx_rx(hldev);

vxge_hw_device_clear_tx_rx(hldev);
VXGE_COMPLETE_ALL_RX(vdev);
VXGE_COMPLETE_ALL_TX(vdev);

enable_irq(dev->irq);
enable_irq(irq);

vxge_debug_entryexit(VXGE_TRACE,
"%s:%d Exiting...", __func__, __LINE__);
Expand Down Expand Up @@ -3424,9 +3423,6 @@ static int __devinit vxge_device_register(struct __vxge_hw_device *hldev,
ndev->features |= ndev->hw_features |
NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_FILTER;

/* Driver entry points */
ndev->irq = vdev->pdev->irq;
ndev->base_addr = (unsigned long) hldev->bar0;

ndev->netdev_ops = &vxge_netdev_ops;

Expand Down

0 comments on commit 7670789

Please sign in to comment.