[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170210.144521.1768411194584186345.davem@davemloft.net>
Date: Fri, 10 Feb 2017 14:45:21 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: ivan.khoronzhuk@...aro.org
Cc: w-kwok2@...com, m-karicheri2@...com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: ethernet: ti: netcp_core: return netdev_tx_t in
xmit
From: Ivan Khoronzhuk <ivan.khoronzhuk@...aro.org>
Date: Thu, 9 Feb 2017 16:24:14 +0200
> @@ -1300,7 +1301,7 @@ static int netcp_ndo_start_xmit(struct sk_buff *skb, struct net_device *ndev)
> dev_warn(netcp->ndev_dev, "padding failed (%d), packet dropped\n",
> ret);
> tx_stats->tx_dropped++;
> - return ret;
> + return NETDEV_TX_BUSY;
> }
> skb->len = NETCP_MIN_PACKET_SIZE;
> }
> @@ -1329,7 +1330,7 @@ static int netcp_ndo_start_xmit(struct sk_buff *skb, struct net_device *ndev)
> if (desc)
> netcp_free_tx_desc_chain(netcp, desc, sizeof(*desc));
> dev_kfree_skb(skb);
> - return ret;
> + return NETDEV_TX_BUSY;
> }
I really think these should be returning NET_XMIT_DROP.
Powered by blists - more mailing lists