Skip to content

Commit

Permalink
Staging: benet: fix netif api breakage
Browse files Browse the repository at this point in the history
The netif_rx_complete() and netif_rx_schedule() functions have changed,
so fix up the build breakage in the benet driver.

Cc: Subbu Seetharaman <subbus@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Jan 6, 2009
1 parent 479e2f4 commit 85e468c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/benet/be_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ int be_poll(struct napi_struct *napi, int budget)

/* All consumed */
if (work_done < budget) {
netif_rx_complete(netdev, napi);
netif_rx_complete(napi);
/* enable intr */
be_notify_cmpl(pnob, work_done, pnob->rx_cq_id, 1);
} else {
Expand Down Expand Up @@ -763,7 +763,7 @@ static inline u32 process_events(struct be_net_object *pnob)
rid = AMAP_GET_BITS_PTR(EQ_ENTRY, ResourceID, eqp);
if (rid == pnob->rx_cq_id) {
adapter->be_stat.bes_rx_events++;
netif_rx_schedule(netdev, &pnob->napi);
netif_rx_schedule(&pnob->napi);
} else if (rid == pnob->tx_cq_id) {
process_nic_tx_completions(pnob);
} else if (rid == pnob->mcc_cq_id) {
Expand Down

0 comments on commit 85e468c

Please sign in to comment.