mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
net: group skb_shinfo zerocopy related bits together.
In preparation for expanded zerocopy (TX and RX), move the zerocopy related bits out of tx_flags into their own flag word. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
8c793822c5
commit
06b4feb37e
@@ -47,7 +47,7 @@
|
||||
/* Number of bytes allowed on the internal guest Rx queue. */
|
||||
#define XENVIF_RX_QUEUE_BYTES (XEN_NETIF_RX_RING_SIZE/2 * PAGE_SIZE)
|
||||
|
||||
/* This function is used to set SKBTX_DEV_ZEROCOPY as well as
|
||||
/* This function is used to set SKBFL_ZEROCOPY_ENABLE as well as
|
||||
* increasing the inflight counter. We need to increase the inflight
|
||||
* counter because core driver calls into xenvif_zerocopy_callback
|
||||
* which calls xenvif_skb_zerocopy_complete.
|
||||
@@ -55,7 +55,7 @@
|
||||
void xenvif_skb_zerocopy_prepare(struct xenvif_queue *queue,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
skb_shinfo(skb)->tx_flags |= SKBTX_DEV_ZEROCOPY;
|
||||
skb_shinfo(skb)->flags |= SKBFL_ZEROCOPY_ENABLE;
|
||||
atomic_inc(&queue->inflight_packets);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user