diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
commit | f8965467f366fd18f01feafb5db10512d7b4422c (patch) | |
tree | 3706a9cd779859271ca61b85c63a1bc3f82d626e /drivers/net/declance.c | |
parent | a26272e5200765691e67d6780e52b32498fdb659 (diff) | |
parent | 2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (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/declance.c')
-rw-r--r-- | drivers/net/declance.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/declance.c b/drivers/net/declance.c index 8cf3cc6f20e2..1d973db27c32 100644 --- a/drivers/net/declance.c +++ b/drivers/net/declance.c | |||
@@ -874,7 +874,7 @@ static inline int lance_reset(struct net_device *dev) | |||
874 | 874 | ||
875 | lance_init_ring(dev); | 875 | lance_init_ring(dev); |
876 | load_csrs(lp); | 876 | load_csrs(lp); |
877 | dev->trans_start = jiffies; | 877 | dev->trans_start = jiffies; /* prevent tx timeout */ |
878 | status = init_restart_lance(lp); | 878 | status = init_restart_lance(lp); |
879 | return status; | 879 | return status; |
880 | } | 880 | } |
@@ -930,7 +930,6 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
930 | 930 | ||
931 | spin_unlock_irqrestore(&lp->lock, flags); | 931 | spin_unlock_irqrestore(&lp->lock, flags); |
932 | 932 | ||
933 | dev->trans_start = jiffies; | ||
934 | dev_kfree_skb(skb); | 933 | dev_kfree_skb(skb); |
935 | 934 | ||
936 | return NETDEV_TX_OK; | 935 | return NETDEV_TX_OK; |
@@ -940,7 +939,7 @@ static void lance_load_multicast(struct net_device *dev) | |||
940 | { | 939 | { |
941 | struct lance_private *lp = netdev_priv(dev); | 940 | struct lance_private *lp = netdev_priv(dev); |
942 | volatile u16 *ib = (volatile u16 *)dev->mem_start; | 941 | volatile u16 *ib = (volatile u16 *)dev->mem_start; |
943 | struct dev_mc_list *dmi; | 942 | struct netdev_hw_addr *ha; |
944 | char *addrs; | 943 | char *addrs; |
945 | u32 crc; | 944 | u32 crc; |
946 | 945 | ||
@@ -959,8 +958,8 @@ static void lance_load_multicast(struct net_device *dev) | |||
959 | *lib_ptr(ib, filter[3], lp->type) = 0; | 958 | *lib_ptr(ib, filter[3], lp->type) = 0; |
960 | 959 | ||
961 | /* Add addresses */ | 960 | /* Add addresses */ |
962 | netdev_for_each_mc_addr(dmi, dev) { | 961 | netdev_for_each_mc_addr(ha, dev) { |
963 | addrs = dmi->dmi_addr; | 962 | addrs = ha->addr; |
964 | 963 | ||
965 | /* multicast address? */ | 964 | /* multicast address? */ |
966 | if (!(*addrs & 1)) | 965 | if (!(*addrs & 1)) |
@@ -970,7 +969,6 @@ static void lance_load_multicast(struct net_device *dev) | |||
970 | crc = crc >> 26; | 969 | crc = crc >> 26; |
971 | *lib_ptr(ib, filter[crc >> 4], lp->type) |= 1 << (crc & 0xf); | 970 | *lib_ptr(ib, filter[crc >> 4], lp->type) |= 1 << (crc & 0xf); |
972 | } | 971 | } |
973 | return; | ||
974 | } | 972 | } |
975 | 973 | ||
976 | static void lance_set_multicast(struct net_device *dev) | 974 | static void lance_set_multicast(struct net_device *dev) |