Skip to content

Commit

Permalink
net: xmit_list() becomes dev_hard_start_xmit().
Browse files Browse the repository at this point in the history
Now fundamentally we can process lists of SKBs as cheaply
as single packets.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 2, 2014
1 parent ce93718 commit 8dcda22
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2570,8 +2570,8 @@ static int xmit_one(struct sk_buff *skb, struct net_device *dev,
return rc;
}

static struct sk_buff *xmit_list(struct sk_buff *first, struct net_device *dev,
struct netdev_queue *txq, int *ret)
struct sk_buff *dev_hard_start_xmit(struct sk_buff *first, struct net_device *dev,
struct netdev_queue *txq, int *ret)
{
struct sk_buff *skb = first;
int rc = NETDEV_TX_OK;
Expand Down Expand Up @@ -2673,17 +2673,6 @@ struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device *dev)
return NULL;
}

struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
struct netdev_queue *txq, int *ret)
{
if (likely(!skb->next)) {
*ret = xmit_one(skb, dev, txq, false);
return skb;
}

return xmit_list(skb, dev, txq, ret);
}

static void qdisc_pkt_len_init(struct sk_buff *skb)
{
const struct skb_shared_info *shinfo = skb_shinfo(skb);
Expand Down

0 comments on commit 8dcda22

Please sign in to comment.