diff options
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 92ae8d3de39b..668327ccd8d0 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -2400,7 +2400,7 @@ static struct sk_buff *s2io_txdl_getskb(struct fifo_info *fifo_data, | |||
2400 | return NULL; | 2400 | return NULL; |
2401 | } | 2401 | } |
2402 | pci_unmap_single(nic->pdev, (dma_addr_t)txds->Buffer_Pointer, | 2402 | pci_unmap_single(nic->pdev, (dma_addr_t)txds->Buffer_Pointer, |
2403 | skb->len - skb->data_len, PCI_DMA_TODEVICE); | 2403 | skb_headlen(skb), PCI_DMA_TODEVICE); |
2404 | frg_cnt = skb_shinfo(skb)->nr_frags; | 2404 | frg_cnt = skb_shinfo(skb)->nr_frags; |
2405 | if (frg_cnt) { | 2405 | if (frg_cnt) { |
2406 | txds++; | 2406 | txds++; |
@@ -2943,7 +2943,6 @@ static void s2io_netpoll(struct net_device *dev) | |||
2943 | } | 2943 | } |
2944 | } | 2944 | } |
2945 | enable_irq(dev->irq); | 2945 | enable_irq(dev->irq); |
2946 | return; | ||
2947 | } | 2946 | } |
2948 | #endif | 2947 | #endif |
2949 | 2948 | ||
@@ -4202,7 +4201,7 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev) | |||
4202 | txdp->Control_2 |= TXD_VLAN_TAG(vlan_tag); | 4201 | txdp->Control_2 |= TXD_VLAN_TAG(vlan_tag); |
4203 | } | 4202 | } |
4204 | 4203 | ||
4205 | frg_len = skb->len - skb->data_len; | 4204 | frg_len = skb_headlen(skb); |
4206 | if (offload_type == SKB_GSO_UDP) { | 4205 | if (offload_type == SKB_GSO_UDP) { |
4207 | int ufo_size; | 4206 | int ufo_size; |
4208 | 4207 | ||
@@ -4756,7 +4755,6 @@ reset: | |||
4756 | s2io_stop_all_tx_queue(sp); | 4755 | s2io_stop_all_tx_queue(sp); |
4757 | schedule_work(&sp->rst_timer_task); | 4756 | schedule_work(&sp->rst_timer_task); |
4758 | sw_stat->soft_reset_cnt++; | 4757 | sw_stat->soft_reset_cnt++; |
4759 | return; | ||
4760 | } | 4758 | } |
4761 | 4759 | ||
4762 | /** | 4760 | /** |
@@ -4965,7 +4963,7 @@ static struct net_device_stats *s2io_get_stats(struct net_device *dev) | |||
4965 | static void s2io_set_multicast(struct net_device *dev) | 4963 | static void s2io_set_multicast(struct net_device *dev) |
4966 | { | 4964 | { |
4967 | int i, j, prev_cnt; | 4965 | int i, j, prev_cnt; |
4968 | struct dev_mc_list *mclist; | 4966 | struct netdev_hw_addr *ha; |
4969 | struct s2io_nic *sp = netdev_priv(dev); | 4967 | struct s2io_nic *sp = netdev_priv(dev); |
4970 | struct XENA_dev_config __iomem *bar0 = sp->bar0; | 4968 | struct XENA_dev_config __iomem *bar0 = sp->bar0; |
4971 | u64 val64 = 0, multi_mac = 0x010203040506ULL, mask = | 4969 | u64 val64 = 0, multi_mac = 0x010203040506ULL, mask = |
@@ -5094,12 +5092,12 @@ static void s2io_set_multicast(struct net_device *dev) | |||
5094 | 5092 | ||
5095 | /* Create the new Rx filter list and update the same in H/W. */ | 5093 | /* Create the new Rx filter list and update the same in H/W. */ |
5096 | i = 0; | 5094 | i = 0; |
5097 | netdev_for_each_mc_addr(mclist, dev) { | 5095 | netdev_for_each_mc_addr(ha, dev) { |
5098 | memcpy(sp->usr_addrs[i].addr, mclist->dmi_addr, | 5096 | memcpy(sp->usr_addrs[i].addr, ha->addr, |
5099 | ETH_ALEN); | 5097 | ETH_ALEN); |
5100 | mac_addr = 0; | 5098 | mac_addr = 0; |
5101 | for (j = 0; j < ETH_ALEN; j++) { | 5099 | for (j = 0; j < ETH_ALEN; j++) { |
5102 | mac_addr |= mclist->dmi_addr[j]; | 5100 | mac_addr |= ha->addr[j]; |
5103 | mac_addr <<= 8; | 5101 | mac_addr <<= 8; |
5104 | } | 5102 | } |
5105 | mac_addr >>= 8; | 5103 | mac_addr >>= 8; |
@@ -8645,7 +8643,6 @@ static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro, | |||
8645 | first->truesize += skb->truesize; | 8643 | first->truesize += skb->truesize; |
8646 | lro->last_frag = skb; | 8644 | lro->last_frag = skb; |
8647 | swstats->clubbed_frms_cnt++; | 8645 | swstats->clubbed_frms_cnt++; |
8648 | return; | ||
8649 | } | 8646 | } |
8650 | 8647 | ||
8651 | /** | 8648 | /** |