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 /* RX stubs */ 17 18 void ef100_rx_write(struct efx_rx_queue *rx_queue) 19 { 20 } 21 22 void __ef100_rx_packet(struct efx_channel *channel) 23 { 24 /* Stub. No RX path yet. Discard the buffer. */ 25 struct efx_rx_buffer *rx_buf = efx_rx_buffer(&channel->rx_queue, 26 channel->rx_pkt_index); 27 struct efx_rx_queue *rx_queue = efx_channel_get_rx_queue(channel); 28 29 efx_free_rx_buffers(rx_queue, rx_buf, 1); 30 channel->rx_pkt_n_frags = 0; 31 } 32