aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/amd8111e.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 00:04:44 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 00:04:44 -0400
commitf8965467f366fd18f01feafb5db10512d7b4422c (patch)
tree3706a9cd779859271ca61b85c63a1bc3f82d626e /drivers/net/amd8111e.c
parenta26272e5200765691e67d6780e52b32498fdb659 (diff)
parent2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1674 commits) qlcnic: adding co maintainer ixgbe: add support for active DA cables ixgbe: dcb, do not tag tc_prio_control frames ixgbe: fix ixgbe_tx_is_paused logic ixgbe: always enable vlan strip/insert when DCB is enabled ixgbe: remove some redundant code in setting FCoE FIP filter ixgbe: fix wrong offset to fc_frame_header in ixgbe_fcoe_ddp ixgbe: fix header len when unsplit packet overflows to data buffer ipv6: Never schedule DAD timer on dead address ipv6: Use POSTDAD state ipv6: Use state_lock to protect ifa state ipv6: Replace inet6_ifaddr->dead with state cxgb4: notify upper drivers if the device is already up when they load cxgb4: keep interrupts available when the ports are brought down cxgb4: fix initial addition of MAC address cnic: Return SPQ credit to bnx2x after ring setup and shutdown. cnic: Convert cnic_local_flags to atomic ops. can: Fix SJA1000 command register writes on SMP systems bridge: fix build for CONFIG_SYSFS disabled ARCNET: Limit com20020 PCI ID matches for SOHARD cards ... Fix up various conflicts with pcmcia tree drivers/net/ {pcmcia/3c589_cs.c, wireless/orinoco/orinoco_cs.c and wireless/orinoco/spectrum_cs.c} and feature removal (Documentation/feature-removal-schedule.txt). Also fix a non-content conflict due to pm_qos_requirement getting renamed in the PM tree (now pm_qos_request) in net/mac80211/scan.c
Diffstat (limited to 'drivers/net/amd8111e.c')
-rw-r--r--drivers/net/amd8111e.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c
index 8d58f0a8f42f..585c25f4b60c 100644
--- a/drivers/net/amd8111e.c
+++ b/drivers/net/amd8111e.c
@@ -1339,8 +1339,6 @@ static netdev_tx_t amd8111e_start_xmit(struct sk_buff *skb,
1339 writel( VAL1 | TDMD0, lp->mmio + CMD0); 1339 writel( VAL1 | TDMD0, lp->mmio + CMD0);
1340 writel( VAL2 | RDMD0,lp->mmio + CMD0); 1340 writel( VAL2 | RDMD0,lp->mmio + CMD0);
1341 1341
1342 dev->trans_start = jiffies;
1343
1344 if(amd8111e_tx_queue_avail(lp) < 0){ 1342 if(amd8111e_tx_queue_avail(lp) < 0){
1345 netif_stop_queue(dev); 1343 netif_stop_queue(dev);
1346 } 1344 }
@@ -1376,7 +1374,7 @@ list to the device.
1376*/ 1374*/
1377static void amd8111e_set_multicast_list(struct net_device *dev) 1375static void amd8111e_set_multicast_list(struct net_device *dev)
1378{ 1376{
1379 struct dev_mc_list *mc_ptr; 1377 struct netdev_hw_addr *ha;
1380 struct amd8111e_priv *lp = netdev_priv(dev); 1378 struct amd8111e_priv *lp = netdev_priv(dev);
1381 u32 mc_filter[2] ; 1379 u32 mc_filter[2] ;
1382 int bit_num; 1380 int bit_num;
@@ -1407,8 +1405,8 @@ static void amd8111e_set_multicast_list(struct net_device *dev)
1407 /* load all the multicast addresses in the logic filter */ 1405 /* load all the multicast addresses in the logic filter */
1408 lp->options |= OPTION_MULTICAST_ENABLE; 1406 lp->options |= OPTION_MULTICAST_ENABLE;
1409 mc_filter[1] = mc_filter[0] = 0; 1407 mc_filter[1] = mc_filter[0] = 0;
1410 netdev_for_each_mc_addr(mc_ptr, dev) { 1408 netdev_for_each_mc_addr(ha, dev) {
1411 bit_num = (ether_crc_le(ETH_ALEN, mc_ptr->dmi_addr) >> 26) & 0x3f; 1409 bit_num = (ether_crc_le(ETH_ALEN, ha->addr) >> 26) & 0x3f;
1412 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); 1410 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31);
1413 } 1411 }
1414 amd8111e_writeq(*(u64*)mc_filter,lp->mmio+ LADRF); 1412 amd8111e_writeq(*(u64*)mc_filter,lp->mmio+ LADRF);