OSDN Git Service

treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201
[uclinux-h8/linux.git] / drivers / net / hyperv / netvsc_drv.c
index b20fb0f..72069ec 100644 (file)
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2009, Microsoft Corporation.
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, see <http://www.gnu.org/licenses/>.
- *
  * Authors:
  *   Haiyang Zhang <haiyangz@microsoft.com>
  *   Hank Janssen  <hjanssen@microsoft.com>
@@ -328,7 +317,7 @@ static inline int netvsc_get_tx_queue(struct net_device *ndev,
  * If a valid queue has already been assigned, then use that.
  * Otherwise compute tx queue based on hash and the send table.
  *
- * This is basically similar to default (__netdev_pick_tx) with the added step
+ * This is basically similar to default (netdev_pick_tx) with the added step
  * of using the host send_table when no other queue has been assigned.
  *
  * TODO support XPS - but get_xps_queue not exported
@@ -351,8 +340,7 @@ static u16 netvsc_pick_tx(struct net_device *ndev, struct sk_buff *skb)
 }
 
 static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb,
-                              struct net_device *sb_dev,
-                              select_queue_fallback_t fallback)
+                              struct net_device *sb_dev)
 {
        struct net_device_context *ndc = netdev_priv(ndev);
        struct net_device *vf_netdev;
@@ -364,10 +352,9 @@ static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb,
                const struct net_device_ops *vf_ops = vf_netdev->netdev_ops;
 
                if (vf_ops->ndo_select_queue)
-                       txq = vf_ops->ndo_select_queue(vf_netdev, skb,
-                                                      sb_dev, fallback);
+                       txq = vf_ops->ndo_select_queue(vf_netdev, skb, sb_dev);
                else
-                       txq = fallback(vf_netdev, skb, NULL);
+                       txq = netdev_pick_tx(vf_netdev, skb, NULL);
 
                /* Record the queue selected by VF so that it can be
                 * used for common case where VF has more queues than