net: Pass a "more" indication down into netdev_start_xmit() code paths.
For now it will always be false. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7f2e870f2a
commit
fa2dbdc253
8 changed files with 13 additions and 11 deletions
|
@ -3431,19 +3431,20 @@ int __init dev_proc_init(void);
|
|||
#endif
|
||||
|
||||
static inline netdev_tx_t __netdev_start_xmit(const struct net_device_ops *ops,
|
||||
struct sk_buff *skb, struct net_device *dev)
|
||||
struct sk_buff *skb, struct net_device *dev,
|
||||
bool more)
|
||||
{
|
||||
skb->xmit_more = 0;
|
||||
skb->xmit_more = more ? 1 : 0;
|
||||
return ops->ndo_start_xmit(skb, dev);
|
||||
}
|
||||
|
||||
static inline netdev_tx_t netdev_start_xmit(struct sk_buff *skb, struct net_device *dev,
|
||||
struct netdev_queue *txq)
|
||||
struct netdev_queue *txq, bool more)
|
||||
{
|
||||
const struct net_device_ops *ops = dev->netdev_ops;
|
||||
int rc;
|
||||
|
||||
rc = __netdev_start_xmit(ops, skb, dev);
|
||||
rc = __netdev_start_xmit(ops, skb, dev, more);
|
||||
if (rc == NETDEV_TX_OK)
|
||||
txq_trans_update(txq);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue