d6b62f980463b4accaa405c246bc6ee13ac8b638
[linux-2.6-microblaze.git] / drivers / net / ethernet / sfc / ef100_rx.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /****************************************************************************
3  * Driver for Solarflare network controllers and boards
4  * Copyright 2005-2019 Solarflare Communications Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation, incorporated herein by reference.
9  */
10
11 #include "net_driver.h"
12 #include "ef100_rx.h"
13 #include "rx_common.h"
14 #include "efx.h"
15
16 void __ef100_rx_packet(struct efx_channel *channel)
17 {
18         /* Stub.  No RX path yet.  Discard the buffer. */
19         struct efx_rx_buffer *rx_buf = efx_rx_buffer(&channel->rx_queue,
20                                                      channel->rx_pkt_index);
21         struct efx_rx_queue *rx_queue = efx_channel_get_rx_queue(channel);
22
23         efx_free_rx_buffers(rx_queue, rx_buf, 1);
24         channel->rx_pkt_n_frags = 0;
25 }