Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c Small minor conflict in bnx2x, wherein one commit changed how statistics were stored in software, and another commit fixed endianness bugs wrt. reading the values provided by the chip in memory. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -797,7 +797,7 @@ static int bcm_enet_open(struct net_device *dev)
|
||||
if (priv->has_phy) {
|
||||
/* connect to PHY */
|
||||
snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT,
|
||||
priv->mac_id ? "1" : "0", priv->phy_id);
|
||||
priv->mii_bus->id, priv->phy_id);
|
||||
|
||||
phydev = phy_connect(dev, phy_id, bcm_enet_adjust_phy_link, 0,
|
||||
PHY_INTERFACE_MODE_MII);
|
||||
|
@@ -117,10 +117,6 @@ static int dropless_fc;
|
||||
module_param(dropless_fc, int, 0);
|
||||
MODULE_PARM_DESC(dropless_fc, " Pause on exhausted host ring");
|
||||
|
||||
static int poll;
|
||||
module_param(poll, int, 0);
|
||||
MODULE_PARM_DESC(poll, " Use polling (for debug)");
|
||||
|
||||
static int mrrs = -1;
|
||||
module_param(mrrs, int, 0);
|
||||
MODULE_PARM_DESC(mrrs, " Force Max Read Req Size (0..3) (for debug)");
|
||||
@@ -4853,20 +4849,11 @@ void bnx2x_drv_pulse(struct bnx2x *bp)
|
||||
|
||||
static void bnx2x_timer(unsigned long data)
|
||||
{
|
||||
u8 cos;
|
||||
struct bnx2x *bp = (struct bnx2x *) data;
|
||||
|
||||
if (!netif_running(bp->dev))
|
||||
return;
|
||||
|
||||
if (poll) {
|
||||
struct bnx2x_fastpath *fp = &bp->fp[0];
|
||||
|
||||
for_each_cos_in_tx_queue(fp, cos)
|
||||
bnx2x_tx_int(bp, &fp->txdata[cos]);
|
||||
bnx2x_rx_int(fp, 1000);
|
||||
}
|
||||
|
||||
if (!BP_NOMCP(bp)) {
|
||||
int mb_idx = BP_FW_MB_IDX(bp);
|
||||
u32 drv_pulse;
|
||||
@@ -10131,7 +10118,6 @@ static void __devinit bnx2x_set_modes_bitmap(struct bnx2x *bp)
|
||||
static int __devinit bnx2x_init_bp(struct bnx2x *bp)
|
||||
{
|
||||
int func;
|
||||
int timer_interval;
|
||||
int rc;
|
||||
|
||||
mutex_init(&bp->port.phy_mutex);
|
||||
@@ -10199,8 +10185,7 @@ static int __devinit bnx2x_init_bp(struct bnx2x *bp)
|
||||
bp->tx_ticks = (50 / BNX2X_BTR) * BNX2X_BTR;
|
||||
bp->rx_ticks = (25 / BNX2X_BTR) * BNX2X_BTR;
|
||||
|
||||
timer_interval = (CHIP_REV_IS_SLOW(bp) ? 5*HZ : HZ);
|
||||
bp->current_interval = (poll ? poll : timer_interval);
|
||||
bp->current_interval = CHIP_REV_IS_SLOW(bp) ? 5*HZ : HZ;
|
||||
|
||||
init_timer(&bp->timer);
|
||||
bp->timer.expires = jiffies + bp->current_interval;
|
||||
|
@@ -1006,14 +1006,14 @@ static int bnx2x_storm_stats_update(struct bnx2x *bp)
|
||||
estats->rx_stat_ifhcinbadoctets_lo);
|
||||
|
||||
ADD_64(estats->total_bytes_received_hi,
|
||||
tfunc->rcv_error_bytes.hi,
|
||||
le32_to_cpu(tfunc->rcv_error_bytes.hi),
|
||||
estats->total_bytes_received_lo,
|
||||
tfunc->rcv_error_bytes.lo);
|
||||
le32_to_cpu(tfunc->rcv_error_bytes.lo));
|
||||
|
||||
ADD_64(estats->error_bytes_received_hi,
|
||||
tfunc->rcv_error_bytes.hi,
|
||||
le32_to_cpu(tfunc->rcv_error_bytes.hi),
|
||||
estats->error_bytes_received_lo,
|
||||
tfunc->rcv_error_bytes.lo);
|
||||
le32_to_cpu(tfunc->rcv_error_bytes.lo));
|
||||
|
||||
UPDATE_ESTAT(etherstatsoverrsizepkts, rx_stat_dot3statsframestoolong);
|
||||
|
||||
|
Reference in New Issue
Block a user