aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2019-01-21 09:49:08 +0530
committerVinod Koul <vkoul@kernel.org>2019-01-21 14:54:32 +0530
commit75dc655d9ec0d9484a8d8ea498a4301b2dee590b (patch)
tree17c8597a5933f57bbd3caf0c0c06102c2fc929ac
parenteae7a847bcaa1a79b3a26894258e0ba6242da3eb (diff)
add ndo_select_queuetopic/eth_cleanup_upstream_v3
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 0e0a0789c2ed..7a40cb3c12cb 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -159,6 +159,13 @@ static void stmmac_disable_all_queues(struct stmmac_priv *priv)
}
}
+static u16 stmmac_select_queue(struct net_device *dev, struct sk_buff *skb,
+ struct net_device *sb_dev,
+ select_queue_fallback_t fallback)
+{
+ return 0;
+}
+
/**
* stmmac_enable_all_queues - Enable all queues
* @priv: driver private structure
@@ -4056,6 +4063,7 @@ static const struct net_device_ops stmmac_netdev_ops = {
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = stmmac_poll_controller,
#endif
+ .ndo_select_queue = stmmac_select_queue,
.ndo_set_mac_address = stmmac_set_mac_address,
};