diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-31 17:39:21 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-08-31 17:39:21 -0400 |
commit | 7c440e7990ea22c0c374c59a5fbd79b0579d1517 (patch) | |
tree | 4fa6513ee2740479bf9c2796a3911eefa485572b /drivers/net/e100.c | |
parent | a422142cfdf90d889d8d3e2affb8311a381530b7 (diff) | |
parent | 9ee093f653bae98cb56b0669819d4bccb8c05fa4 (diff) |
Merge branch 'upstream' of git://lost.foo-projects.org/~ahkok/git/netdev-2.6 into upstream
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r-- | drivers/net/e100.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index b42ad76b1116..3b0b95892d5f 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -159,7 +159,7 @@ | |||
159 | 159 | ||
160 | #define DRV_NAME "e100" | 160 | #define DRV_NAME "e100" |
161 | #define DRV_EXT "-NAPI" | 161 | #define DRV_EXT "-NAPI" |
162 | #define DRV_VERSION "3.5.10-k4"DRV_EXT | 162 | #define DRV_VERSION "3.5.16-k2"DRV_EXT |
163 | #define DRV_DESCRIPTION "Intel(R) PRO/100 Network Driver" | 163 | #define DRV_DESCRIPTION "Intel(R) PRO/100 Network Driver" |
164 | #define DRV_COPYRIGHT "Copyright(c) 1999-2006 Intel Corporation" | 164 | #define DRV_COPYRIGHT "Copyright(c) 1999-2006 Intel Corporation" |
165 | #define PFX DRV_NAME ": " | 165 | #define PFX DRV_NAME ": " |
@@ -1759,11 +1759,10 @@ static inline void e100_start_receiver(struct nic *nic, struct rx *rx) | |||
1759 | #define RFD_BUF_LEN (sizeof(struct rfd) + VLAN_ETH_FRAME_LEN) | 1759 | #define RFD_BUF_LEN (sizeof(struct rfd) + VLAN_ETH_FRAME_LEN) |
1760 | static int e100_rx_alloc_skb(struct nic *nic, struct rx *rx) | 1760 | static int e100_rx_alloc_skb(struct nic *nic, struct rx *rx) |
1761 | { | 1761 | { |
1762 | if(!(rx->skb = dev_alloc_skb(RFD_BUF_LEN + NET_IP_ALIGN))) | 1762 | if(!(rx->skb = netdev_alloc_skb(nic->netdev, RFD_BUF_LEN + NET_IP_ALIGN))) |
1763 | return -ENOMEM; | 1763 | return -ENOMEM; |
1764 | 1764 | ||
1765 | /* Align, init, and map the RFD. */ | 1765 | /* Align, init, and map the RFD. */ |
1766 | rx->skb->dev = nic->netdev; | ||
1767 | skb_reserve(rx->skb, NET_IP_ALIGN); | 1766 | skb_reserve(rx->skb, NET_IP_ALIGN); |
1768 | memcpy(rx->skb->data, &nic->blank_rfd, sizeof(struct rfd)); | 1767 | memcpy(rx->skb->data, &nic->blank_rfd, sizeof(struct rfd)); |
1769 | rx->dma_addr = pci_map_single(nic->pdev, rx->skb->data, | 1768 | rx->dma_addr = pci_map_single(nic->pdev, rx->skb->data, |
@@ -2139,7 +2138,7 @@ static int e100_loopback_test(struct nic *nic, enum loopback loopback_mode) | |||
2139 | 2138 | ||
2140 | e100_start_receiver(nic, NULL); | 2139 | e100_start_receiver(nic, NULL); |
2141 | 2140 | ||
2142 | if(!(skb = dev_alloc_skb(ETH_DATA_LEN))) { | 2141 | if(!(skb = netdev_alloc_skb(nic->netdev, ETH_DATA_LEN))) { |
2143 | err = -ENOMEM; | 2142 | err = -ENOMEM; |
2144 | goto err_loopback_none; | 2143 | goto err_loopback_none; |
2145 | } | 2144 | } |
@@ -2791,6 +2790,7 @@ static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel | |||
2791 | /* Detach; put netif into state similar to hotplug unplug. */ | 2790 | /* Detach; put netif into state similar to hotplug unplug. */ |
2792 | netif_poll_enable(netdev); | 2791 | netif_poll_enable(netdev); |
2793 | netif_device_detach(netdev); | 2792 | netif_device_detach(netdev); |
2793 | pci_disable_device(pdev); | ||
2794 | 2794 | ||
2795 | /* Request a slot reset. */ | 2795 | /* Request a slot reset. */ |
2796 | return PCI_ERS_RESULT_NEED_RESET; | 2796 | return PCI_ERS_RESULT_NEED_RESET; |