diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-03-20 17:53:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-20 21:36:12 (GMT) |
commit | d5c76f628d399f06785b0ee910c431770a01b807 (patch) | |
tree | 9dbdb3b77b88f01c9b5f6a955622d1a44726a465 /drivers/net/ethernet/broadcom/genet/bcmgenet.c | |
parent | d03825fba459d0d58e4fe162439babfc5f5eabc4 (diff) | |
download | linux-d5c76f628d399f06785b0ee910c431770a01b807.tar.xz |
net: bcmgenet: remove bogus tx queue checks
netdev_pick_tx already takes care of making sure that a given
skb->queue_mapping value will remain within the number of advertised
hardware queue number, there is no need to re-do this again in the
driver.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/genet/bcmgenet.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index 0a9f6df..cfcb046 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -1125,14 +1125,6 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev) else index -= 1; - if ((index != DESC_INDEX) && (index > priv->hw_params->tx_queues - 1)) { - netdev_err(dev, "%s: queue_mapping %d is invalid\n", - __func__, skb_get_queue_mapping(skb)); - dev->stats.tx_errors++; - dev->stats.tx_dropped++; - ret = NETDEV_TX_OK; - goto out; - } nr_frags = skb_shinfo(skb)->nr_frags; ring = &priv->tx_rings[index]; |