1 // SPDX-License-Identifier: GPL-2.0-only
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2005-2019 Solarflare Communications Inc.
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.
11 #include "net_driver.h"
13 #include "rx_common.h"
16 void __ef100_rx_packet(struct efx_channel *channel)
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);
23 efx_free_rx_buffers(rx_queue, rx_buf, 1);
24 channel->rx_pkt_n_frags = 0;