[SK_BUFF]: Introduce skb_copy_from_linear_data{_offset}
To clearly state the intent of copying from linear sk_buffs, _offset being a overly long variant but interesting for the sake of saving some bytes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
David S. Miller
parent
2a123b86e2
commit
d626f62b11
@ -1576,7 +1576,7 @@ __lcs_start_xmit(struct lcs_card *card, struct sk_buff *skb,
|
||||
header->offset = card->tx_buffer->count;
|
||||
header->type = card->lan_type;
|
||||
header->slot = card->portno;
|
||||
memcpy(header + 1, skb->data, skb->len);
|
||||
skb_copy_from_linear_data(skb, header + 1, skb->len);
|
||||
spin_unlock(&card->lock);
|
||||
card->stats.tx_bytes += skb->len;
|
||||
card->stats.tx_packets++;
|
||||
|
Reference in New Issue
Block a user