Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224139
b: refs/heads/master
c: f17a37c
h: refs/heads/master
i:
  224137: af8b04c
  224135: 2e79067
v: v3
  • Loading branch information
Gerrit Renker committed Nov 10, 2010
1 parent 24d4a6b commit cb970a2
Show file tree
Hide file tree
Showing 38 changed files with 1,180 additions and 1,710 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72cdd1d971c0deb1619c5c339270570c43647a78
refs/heads/master: f17a37c9b8c4b32c01e501a84fa6f30e344c6110
8 changes: 4 additions & 4 deletions trunk/drivers/infiniband/core/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,20 @@ static int addr4_resolve(struct sockaddr_in *src_in,
src_in->sin_family = AF_INET;
src_in->sin_addr.s_addr = rt->rt_src;

if (rt->dst.dev->flags & IFF_LOOPBACK) {
if (rt->idev->dev->flags & IFF_LOOPBACK) {
ret = rdma_translate_ip((struct sockaddr *) dst_in, addr);
if (!ret)
memcpy(addr->dst_dev_addr, addr->src_dev_addr, MAX_ADDR_LEN);
goto put;
}

/* If the device does ARP internally, return 'done' */
if (rt->dst.dev->flags & IFF_NOARP) {
rdma_copy_addr(addr, rt->dst.dev, NULL);
if (rt->idev->dev->flags & IFF_NOARP) {
rdma_copy_addr(addr, rt->idev->dev, NULL);
goto put;
}

neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->dst.dev);
neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, rt->idev->dev);
if (!neigh || !(neigh->nud_state & NUD_VALID)) {
neigh_event_send(rt->dst.neighbour, NULL);
ret = -ENODATA;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/3c507.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ struct net_local {
#define RX_BUF_SIZE (1518+14+18) /* packet+header+RBD */
#define RX_BUF_END (dev->mem_end - dev->mem_start)

#define TX_TIMEOUT (HZ/20)
#define TX_TIMEOUT 5

/*
That's it: only 86 bytes to set up the beast, including every extra
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/3c515.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int rx_nocopy, rx_copy, queued_packet;
#define WAIT_TX_AVAIL 200

/* Operational parameter that usually are not changed. */
#define TX_TIMEOUT ((4*HZ)/10) /* Time in jiffies before concluding Tx hung */
#define TX_TIMEOUT 40 /* Time in jiffies before concluding Tx hung */

/* The size here is somewhat misleading: the Corkscrew also uses the ISA
aliased registers at <base>+0x400.
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/82596.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ enum commands {
#define RX_SUSPEND 0x0030
#define RX_ABORT 0x0040

#define TX_TIMEOUT (HZ/20)
#define TX_TIMEOUT 5


struct i596_reg {
Expand Down
19 changes: 5 additions & 14 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2772,38 +2772,29 @@ config IXGB
will be called ixgb.

config S2IO
tristate "Exar Xframe 10Gb Ethernet Adapter"
tristate "S2IO 10Gbe XFrame NIC"
depends on PCI
---help---
This driver supports Exar Corp's Xframe Series 10Gb Ethernet Adapters.

This driver supports the 10Gbe XFrame NIC of S2IO.
More specific information on configuring the driver is in
<file:Documentation/networking/s2io.txt>.

To compile this driver as a module, choose M here. The module
will be called s2io.

config VXGE
tristate "Exar X3100 Series 10GbE PCIe Server Adapter"
tristate "Neterion X3100 Series 10GbE PCIe Server Adapter"
depends on PCI && INET
---help---
This driver supports Exar Corp's X3100 Series 10 GbE PCIe
This driver supports Neterion Inc's X3100 Series 10 GbE PCIe
I/O Virtualized Server Adapter.

More specific information on configuring the driver is in
<file:Documentation/networking/vxge.txt>.

To compile this driver as a module, choose M here. The module
will be called vxge.

config VXGE_DEBUG_TRACE_ALL
bool "Enabling All Debug trace statments in driver"
default n
depends on VXGE
---help---
Say Y here if you want to enabling all the debug trace statements in
the vxge driver. By default only few debug trace statements are
enabled.
driver. By default only few debug trace statements are enabled.

config MYRI10GE
tristate "Myricom Myri-10G Ethernet support"
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/arm/w90p910_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
#define TX_DESC_SIZE 10
#define MAX_RBUFF_SZ 0x600
#define MAX_TBUFF_SZ 0x600
#define TX_TIMEOUT (HZ/2)
#define TX_TIMEOUT 50
#define DELAY 1000
#define CAM0 0x0

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/at1700.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ struct net_local {
#define PORT_OFFSET(o) (o)


#define TX_TIMEOUT (HZ/10)
#define TX_TIMEOUT 10


/* Index to functions, as function prototypes. */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/atarilance.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ MODULE_LICENSE("GPL");
#define RX_RING_LEN_BITS (RX_LOG_RING_SIZE << 5)
#define RX_RING_MOD_MASK (RX_RING_SIZE - 1)

#define TX_TIMEOUT (HZ/5)
#define TX_TIMEOUT 20

/* The LANCE Rx and Tx ring descriptors. */
struct lance_rx_head {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static int mscan_restart(struct net_device *dev)

priv->can.state = CAN_STATE_ERROR_ACTIVE;
WARN(!(in_8(&regs->canmisc) & MSCAN_BOHOLD),
"bus-off state expected\n");
"bus-off state expected");
out_8(&regs->canmisc, MSCAN_BOHOLD);
/* Re-enable receive interrupts. */
out_8(&regs->canrier, MSCAN_RX_INTS_ENABLE);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/eepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct eepro_local {
#define ee_id_eepro10p0 0x10 /* ID for eepro/10+ */
#define ee_id_eepro10p1 0x31

#define TX_TIMEOUT ((4*HZ)/10)
#define TX_TIMEOUT 40

/* Index to functions, as function prototypes. */

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/lance.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ tx_full and tbusy flags.
#define LANCE_BUS_IF 0x16
#define LANCE_TOTAL_SIZE 0x18

#define TX_TIMEOUT (HZ/5)
#define TX_TIMEOUT 20

/* The LANCE Rx and Tx ring descriptors. */
struct lance_rx_head {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/lib82596.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ enum commands {
#define RX_SUSPEND 0x0030
#define RX_ABORT 0x0040

#define TX_TIMEOUT (HZ/20)
#define TX_TIMEOUT 5


struct i596_reg {
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/qlge/qlge.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
#define DRV_NAME "qlge"
#define DRV_STRING "QLogic 10 Gigabit PCI-E Ethernet Driver "
#define DRV_VERSION "v1.00.00.27.00.00-01"
#define DRV_VERSION "v1.00.00.25.00.00-01"

#define WQ_ADDR_ALIGN 0x3 /* 4 byte alignment */

Expand Down Expand Up @@ -2221,7 +2221,6 @@ int ql_write_mpi_reg(struct ql_adapter *qdev, u32 reg, u32 data);
int ql_unpause_mpi_risc(struct ql_adapter *qdev);
int ql_pause_mpi_risc(struct ql_adapter *qdev);
int ql_hard_reset_mpi_risc(struct ql_adapter *qdev);
int ql_soft_reset_mpi_risc(struct ql_adapter *qdev);
int ql_dump_risc_ram_area(struct ql_adapter *qdev, void *buf,
u32 ram_addr, int word_count);
int ql_core_dump(struct ql_adapter *qdev,
Expand All @@ -2237,7 +2236,6 @@ int ql_mb_set_mgmnt_traffic_ctl(struct ql_adapter *qdev, u32 control);
int ql_mb_get_port_cfg(struct ql_adapter *qdev);
int ql_mb_set_port_cfg(struct ql_adapter *qdev);
int ql_wait_fifo_empty(struct ql_adapter *qdev);
void ql_get_dump(struct ql_adapter *qdev, void *buff);
void ql_gen_reg_dump(struct ql_adapter *qdev,
struct ql_reg_dump *mpi_coredump);
netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev);
Expand Down
21 changes: 1 addition & 20 deletions trunk/drivers/net/qlge/qlge_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,28 +1317,9 @@ void ql_gen_reg_dump(struct ql_adapter *qdev,
status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]);
if (status)
return;
}

void ql_get_dump(struct ql_adapter *qdev, void *buff)
{
/*
* If the dump has already been taken and is stored
* in our internal buffer and if force dump is set then
* just start the spool to dump it to the log file
* and also, take a snapshot of the general regs to
* to the user's buffer or else take complete dump
* to the user's buffer if force is not set.
*/

if (!test_bit(QL_FRC_COREDUMP, &qdev->flags)) {
if (!ql_core_dump(qdev, buff))
ql_soft_reset_mpi_risc(qdev);
else
netif_err(qdev, drv, qdev->ndev, "coredump failed!\n");
} else {
ql_gen_reg_dump(qdev, buff);
if (test_bit(QL_FRC_COREDUMP, &qdev->flags))
ql_get_core_dump(qdev);
}
}

/* Coredump to messages log file using separate worker thread */
Expand Down
19 changes: 3 additions & 16 deletions trunk/drivers/net/qlge/qlge_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,7 @@ static void ql_get_drvinfo(struct net_device *ndev,
strncpy(drvinfo->bus_info, pci_name(qdev->pdev), 32);
drvinfo->n_stats = 0;
drvinfo->testinfo_len = 0;
if (!test_bit(QL_FRC_COREDUMP, &qdev->flags))
drvinfo->regdump_len = sizeof(struct ql_mpi_coredump);
else
drvinfo->regdump_len = sizeof(struct ql_reg_dump);
drvinfo->regdump_len = 0;
drvinfo->eedump_len = 0;
}

Expand Down Expand Up @@ -550,25 +547,15 @@ static void ql_self_test(struct net_device *ndev,

static int ql_get_regs_len(struct net_device *ndev)
{
struct ql_adapter *qdev = netdev_priv(ndev);

if (!test_bit(QL_FRC_COREDUMP, &qdev->flags))
return sizeof(struct ql_mpi_coredump);
else
return sizeof(struct ql_reg_dump);
return sizeof(struct ql_reg_dump);
}

static void ql_get_regs(struct net_device *ndev,
struct ethtool_regs *regs, void *p)
{
struct ql_adapter *qdev = netdev_priv(ndev);

ql_get_dump(qdev, p);
qdev->core_is_dumped = 0;
if (!test_bit(QL_FRC_COREDUMP, &qdev->flags))
regs->len = sizeof(struct ql_mpi_coredump);
else
regs->len = sizeof(struct ql_reg_dump);
ql_gen_reg_dump(qdev, p);
}

static int ql_get_coalesce(struct net_device *dev, struct ethtool_coalesce *c)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/qlge/qlge_mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int ql_write_mpi_reg(struct ql_adapter *qdev, u32 reg, u32 data)
return status;
}

int ql_soft_reset_mpi_risc(struct ql_adapter *qdev)
static int ql_soft_reset_mpi_risc(struct ql_adapter *qdev)
{
int status;
status = ql_write_mpi_reg(qdev, 0x00001010, 1);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/usb/ipheth.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static int ipheth_tx(struct sk_buff *skb, struct net_device *net)

/* Paranoid */
if (skb->len > IPHETH_BUF_SIZE) {
WARN(1, "%s: skb too large: %d bytes\n", __func__, skb->len);
WARN(1, "%s: skb too large: %d bytes", __func__, skb->len);
dev->net->stats.tx_dropped++;
dev_kfree_skb_irq(skb);
return NETDEV_TX_OK;
Expand Down
Loading

0 comments on commit cb970a2

Please sign in to comment.