Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
This commit is contained in:
@@ -448,9 +448,6 @@ static void efx_init_channels(struct efx_nic *efx)
|
||||
|
||||
WARN_ON(channel->rx_pkt != NULL);
|
||||
efx_rx_strategy(channel);
|
||||
|
||||
netif_napi_add(channel->napi_dev, &channel->napi_str,
|
||||
efx_poll, napi_weight);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1321,6 +1318,8 @@ static int efx_init_napi(struct efx_nic *efx)
|
||||
|
||||
efx_for_each_channel(channel, efx) {
|
||||
channel->napi_dev = efx->net_dev;
|
||||
netif_napi_add(channel->napi_dev, &channel->napi_str,
|
||||
efx_poll, napi_weight);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1330,6 +1329,8 @@ static void efx_fini_napi(struct efx_nic *efx)
|
||||
struct efx_channel *channel;
|
||||
|
||||
efx_for_each_channel(channel, efx) {
|
||||
if (channel->napi_dev)
|
||||
netif_napi_del(&channel->napi_str);
|
||||
channel->napi_dev = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1176,9 +1176,9 @@ void falcon_sim_phy_event(struct efx_nic *efx)
|
||||
|
||||
EFX_POPULATE_QWORD_1(phy_event, EV_CODE, GLOBAL_EV_DECODE);
|
||||
if (EFX_IS10G(efx))
|
||||
EFX_SET_OWORD_FIELD(phy_event, XG_PHY_INTR, 1);
|
||||
EFX_SET_QWORD_FIELD(phy_event, XG_PHY_INTR, 1);
|
||||
else
|
||||
EFX_SET_OWORD_FIELD(phy_event, G_PHY0_INTR, 1);
|
||||
EFX_SET_QWORD_FIELD(phy_event, G_PHY0_INTR, 1);
|
||||
|
||||
falcon_generate_event(&efx->channel[0], &phy_event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user