Skip to content

Commit 22f6dac

Browse files
committed
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: include/net/tcp.h
2 parents 928f308 + 9b05126 commit 22f6dac

32 files changed

Lines changed: 612 additions & 173 deletions

File tree

‎drivers/net/bnx2.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454

5555
#define DRV_MODULE_NAME "bnx2"
5656
#define PFX DRV_MODULE_NAME ": "
57-
#define DRV_MODULE_VERSION "2.0.0"
58-
#define DRV_MODULE_RELDATE "April 2, 2009"
57+
#define DRV_MODULE_VERSION "2.0.1"
58+
#define DRV_MODULE_RELDATE "May 6, 2009"
5959
#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-4.6.16.fw"
6060
#define FW_RV2P_FILE_06 "bnx2/bnx2-rv2p-06-4.6.16.fw"
6161
#define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-4.6.17.fw"
@@ -2600,6 +2600,7 @@ bnx2_get_hw_tx_cons(struct bnx2_napi *bnapi)
26002600
/* Tell compiler that status block fields can change. */
26012601
barrier();
26022602
cons = *bnapi->hw_tx_cons_ptr;
2603+
barrier();
26032604
if (unlikely((cons & MAX_TX_DESC_CNT) == MAX_TX_DESC_CNT))
26042605
cons++;
26052606
return cons;
@@ -2879,6 +2880,7 @@ bnx2_get_hw_rx_cons(struct bnx2_napi *bnapi)
28792880
/* Tell compiler that status block fields can change. */
28802881
barrier();
28812882
cons = *bnapi->hw_rx_cons_ptr;
2883+
barrier();
28822884
if (unlikely((cons & MAX_RX_DESC_CNT) == MAX_RX_DESC_CNT))
28832885
cons++;
28842886
return cons;

‎drivers/net/bonding/bond_alb.c‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,10 +1706,8 @@ void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave
17061706
* Called with RTNL
17071707
*/
17081708
int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr)
1709-
__releases(&bond->curr_slave_lock)
1710-
__releases(&bond->lock)
17111709
__acquires(&bond->lock)
1712-
__acquires(&bond->curr_slave_lock)
1710+
__releases(&bond->lock)
17131711
{
17141712
struct bonding *bond = netdev_priv(bond_dev);
17151713
struct sockaddr *sa = addr;
@@ -1745,26 +1743,22 @@ int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr)
17451743
}
17461744
}
17471745

1748-
write_unlock_bh(&bond->curr_slave_lock);
1749-
read_unlock(&bond->lock);
1750-
17511746
if (swap_slave) {
17521747
alb_swap_mac_addr(bond, swap_slave, bond->curr_active_slave);
17531748
alb_fasten_mac_swap(bond, swap_slave, bond->curr_active_slave);
17541749
} else {
17551750
alb_set_slave_mac_addr(bond->curr_active_slave, bond_dev->dev_addr,
17561751
bond->alb_info.rlb_enabled);
17571752

1753+
read_lock(&bond->lock);
17581754
alb_send_learning_packets(bond->curr_active_slave, bond_dev->dev_addr);
17591755
if (bond->alb_info.rlb_enabled) {
17601756
/* inform clients mac address has changed */
17611757
rlb_req_update_slave_clients(bond, bond->curr_active_slave);
17621758
}
1759+
read_unlock(&bond->lock);
17631760
}
17641761

1765-
read_lock(&bond->lock);
1766-
write_lock_bh(&bond->curr_slave_lock);
1767-
17681762
return 0;
17691763
}
17701764

‎drivers/net/e1000/e1000_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3741,7 +3741,7 @@ static irqreturn_t e1000_intr(int irq, void *data)
37413741
struct e1000_hw *hw = &adapter->hw;
37423742
u32 rctl, icr = er32(ICR);
37433743

3744-
if (unlikely((!icr) || test_bit(__E1000_RESETTING, &adapter->flags)))
3744+
if (unlikely((!icr) || test_bit(__E1000_DOWN, &adapter->flags)))
37453745
return IRQ_NONE; /* Not our interrupt */
37463746

37473747
/* IMS will not auto-mask if INT_ASSERTED is not set, and if it is

‎drivers/net/ehea/ehea.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include <asm/io.h>
4141

4242
#define DRV_NAME "ehea"
43-
#define DRV_VERSION "EHEA_0100"
43+
#define DRV_VERSION "EHEA_0101"
4444

4545
/* eHEA capability flags */
4646
#define DLPAR_PORT_ADD_REM 1

‎drivers/net/ehea/ehea_main.c‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,17 @@ static inline struct sk_buff *get_skb_by_index(struct sk_buff **skb_array,
545545
x &= (arr_len - 1);
546546

547547
pref = skb_array[x];
548-
prefetchw(pref);
549-
prefetchw(pref + EHEA_CACHE_LINE);
550-
551-
pref = (skb_array[x]->data);
552-
prefetch(pref);
553-
prefetch(pref + EHEA_CACHE_LINE);
554-
prefetch(pref + EHEA_CACHE_LINE * 2);
555-
prefetch(pref + EHEA_CACHE_LINE * 3);
548+
if (pref) {
549+
prefetchw(pref);
550+
prefetchw(pref + EHEA_CACHE_LINE);
551+
552+
pref = (skb_array[x]->data);
553+
prefetch(pref);
554+
prefetch(pref + EHEA_CACHE_LINE);
555+
prefetch(pref + EHEA_CACHE_LINE * 2);
556+
prefetch(pref + EHEA_CACHE_LINE * 3);
557+
}
558+
556559
skb = skb_array[skb_index];
557560
skb_array[skb_index] = NULL;
558561
return skb;
@@ -569,12 +572,14 @@ static inline struct sk_buff *get_skb_by_index_ll(struct sk_buff **skb_array,
569572
x &= (arr_len - 1);
570573

571574
pref = skb_array[x];
572-
prefetchw(pref);
573-
prefetchw(pref + EHEA_CACHE_LINE);
575+
if (pref) {
576+
prefetchw(pref);
577+
prefetchw(pref + EHEA_CACHE_LINE);
574578

575-
pref = (skb_array[x]->data);
576-
prefetchw(pref);
577-
prefetchw(pref + EHEA_CACHE_LINE);
579+
pref = (skb_array[x]->data);
580+
prefetchw(pref);
581+
prefetchw(pref + EHEA_CACHE_LINE);
582+
}
578583

579584
skb = skb_array[wqe_index];
580585
skb_array[wqe_index] = NULL;

‎drivers/net/igb/igb_main.c‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ static void igb_setup_rctl(struct igb_adapter *adapter)
20102010
struct e1000_hw *hw = &adapter->hw;
20112011
u32 rctl;
20122012
u32 srrctl = 0;
2013-
int i, j;
2013+
int i;
20142014

20152015
rctl = rd32(E1000_RCTL);
20162016

@@ -2075,25 +2075,23 @@ static void igb_setup_rctl(struct igb_adapter *adapter)
20752075
if (adapter->vfs_allocated_count) {
20762076
u32 vmolr;
20772077

2078-
j = adapter->rx_ring[0].reg_idx;
2079-
20802078
/* set all queue drop enable bits */
20812079
wr32(E1000_QDE, ALL_QUEUES);
20822080
srrctl |= E1000_SRRCTL_DROP_EN;
20832081

20842082
/* disable queue 0 to prevent tail write w/o re-config */
20852083
wr32(E1000_RXDCTL(0), 0);
20862084

2087-
vmolr = rd32(E1000_VMOLR(j));
2085+
vmolr = rd32(E1000_VMOLR(adapter->vfs_allocated_count));
20882086
if (rctl & E1000_RCTL_LPE)
20892087
vmolr |= E1000_VMOLR_LPE;
2090-
if (adapter->num_rx_queues > 0)
2088+
if (adapter->num_rx_queues > 1)
20912089
vmolr |= E1000_VMOLR_RSSE;
2092-
wr32(E1000_VMOLR(j), vmolr);
2090+
wr32(E1000_VMOLR(adapter->vfs_allocated_count), vmolr);
20932091
}
20942092

20952093
for (i = 0; i < adapter->num_rx_queues; i++) {
2096-
j = adapter->rx_ring[i].reg_idx;
2094+
int j = adapter->rx_ring[i].reg_idx;
20972095
wr32(E1000_SRRCTL(j), srrctl);
20982096
}
20992097

‎drivers/net/usb/Kconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,20 @@ config USB_NET_CDCETHER
180180
IEEE 802 "local assignment" bit is set in the address, a "usbX"
181181
name is used instead.
182182

183+
config USB_NET_CDC_EEM
184+
tristate "CDC EEM support"
185+
depends on USB_USBNET && EXPERIMENTAL
186+
help
187+
This option supports devices conforming to the Communication Device
188+
Class (CDC) Ethernet Emulation Model, a specification that's easy to
189+
implement in device firmware. The CDC EEM specifications are available
190+
from <http://www.usb.org/>.
191+
192+
This driver creates an interface named "ethX", where X depends on
193+
what other networking devices you have in use. However, if the
194+
IEEE 802 "local assignment" bit is set in the address, a "usbX"
195+
name is used instead.
196+
183197
config USB_NET_DM9601
184198
tristate "Davicom DM9601 based USB 1.1 10/100 ethernet devices"
185199
depends on USB_USBNET

‎drivers/net/usb/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ obj-$(CONFIG_USB_RTL8150) += rtl8150.o
99
obj-$(CONFIG_USB_HSO) += hso.o
1010
obj-$(CONFIG_USB_NET_AX8817X) += asix.o
1111
obj-$(CONFIG_USB_NET_CDCETHER) += cdc_ether.o
12+
obj-$(CONFIG_USB_NET_CDC_EEM) += cdc_eem.o
1213
obj-$(CONFIG_USB_NET_DM9601) += dm9601.o
1314
obj-$(CONFIG_USB_NET_SMSC95XX) += smsc95xx.o
1415
obj-$(CONFIG_USB_NET_GL620A) += gl620a.o

0 commit comments

Comments
 (0)