aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/rx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-28 22:43:56 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-29 19:46:32 -0500
commit152b6a62aea2d43359dd37004e9c218bf7bdeb3b (patch)
treefe7361364a94322a713d6b06cc6d0d7513d55c72 /drivers/net/sfc/rx.c
parent06629f07248b259e08a6e4089fbe6aa3f98dfbe6 (diff)
sfc: Separate shared NIC code from Falcon-specific and rename accordingly
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/rx.c')
-rw-r--r--drivers/net/sfc/rx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c
index accf055ff89d..8fffd3792947 100644
--- a/drivers/net/sfc/rx.c
+++ b/drivers/net/sfc/rx.c
@@ -341,7 +341,7 @@ static int __efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue,
341 341
342 out: 342 out:
343 /* Send write pointer to card. */ 343 /* Send write pointer to card. */
344 falcon_notify_rx_desc(rx_queue); 344 efx_nic_notify_rx_desc(rx_queue);
345 345
346 /* If the fast fill is running inside from the refill tasklet, then 346 /* If the fast fill is running inside from the refill tasklet, then
347 * for SMP systems it may be running on a different CPU to 347 * for SMP systems it may be running on a different CPU to
@@ -640,7 +640,7 @@ int efx_probe_rx_queue(struct efx_rx_queue *rx_queue)
640 if (!rx_queue->buffer) 640 if (!rx_queue->buffer)
641 return -ENOMEM; 641 return -ENOMEM;
642 642
643 rc = falcon_probe_rx(rx_queue); 643 rc = efx_nic_probe_rx(rx_queue);
644 if (rc) { 644 if (rc) {
645 kfree(rx_queue->buffer); 645 kfree(rx_queue->buffer);
646 rx_queue->buffer = NULL; 646 rx_queue->buffer = NULL;
@@ -671,7 +671,7 @@ void efx_init_rx_queue(struct efx_rx_queue *rx_queue)
671 rx_queue->fast_fill_limit = limit; 671 rx_queue->fast_fill_limit = limit;
672 672
673 /* Set up RX descriptor ring */ 673 /* Set up RX descriptor ring */
674 falcon_init_rx(rx_queue); 674 efx_nic_init_rx(rx_queue);
675} 675}
676 676
677void efx_fini_rx_queue(struct efx_rx_queue *rx_queue) 677void efx_fini_rx_queue(struct efx_rx_queue *rx_queue)
@@ -681,7 +681,7 @@ void efx_fini_rx_queue(struct efx_rx_queue *rx_queue)
681 681
682 EFX_LOG(rx_queue->efx, "shutting down RX queue %d\n", rx_queue->queue); 682 EFX_LOG(rx_queue->efx, "shutting down RX queue %d\n", rx_queue->queue);
683 683
684 falcon_fini_rx(rx_queue); 684 efx_nic_fini_rx(rx_queue);
685 685
686 /* Release RX buffers NB start at index 0 not current HW ptr */ 686 /* Release RX buffers NB start at index 0 not current HW ptr */
687 if (rx_queue->buffer) { 687 if (rx_queue->buffer) {
@@ -706,7 +706,7 @@ void efx_remove_rx_queue(struct efx_rx_queue *rx_queue)
706{ 706{
707 EFX_LOG(rx_queue->efx, "destroying RX queue %d\n", rx_queue->queue); 707 EFX_LOG(rx_queue->efx, "destroying RX queue %d\n", rx_queue->queue);
708 708
709 falcon_remove_rx(rx_queue); 709 efx_nic_remove_rx(rx_queue);
710 710
711 kfree(rx_queue->buffer); 711 kfree(rx_queue->buffer);
712 rx_queue->buffer = NULL; 712 rx_queue->buffer = NULL;