1 // SPDX-License-Identifier: GPL-2.0-only
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2018 Solarflare Communications Inc.
5 * Copyright 2019-2020 Xilinx Inc.
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published
9 * by the Free Software Foundation, incorporated herein by reference.
12 #include "net_driver.h"
13 #include "tx_common.h"
14 #include "nic_common.h"
17 /* Add a socket buffer to a TX queue
19 * You must hold netif_tx_lock() to call this function.
21 * Returns 0 on success, error code otherwise. In case of an error this
22 * function will free the SKB.
24 int ef100_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb)
26 /* Stub. No TX path yet. */
27 struct efx_nic *efx = tx_queue->efx;
29 netif_stop_queue(efx->net_dev);
30 dev_kfree_skb_any(skb);