Skip to contentSkip to conversation

Add a new device flag for zero copy

RFC PATCH In review Shirley Ma 1 participant 1 message Dec 10, 2010

Subsystems (3)
lore
Share & tools
lore

Shirley Ma

author
#0 lore raw

RFC PATCH v2 2/5 Add a new device flag for zero copy

---

 include/linux/netdevice.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/netdevice.h +3 -0
index d8fd2c2..7207665 100644
@@ -857,6 +857,9 @@ struct net_device {
 #define NETIF_F_NTUPLE		(1 << 27) /* N-tuple filters supported */
 #define NETIF_F_RXHASH		(1 << 28) /* Receive hashing offload */
 
+/* bit 29 is for device to map userspace buffers -- zerocopy */
+#define NETIF_F_ZEROCOPY	(1 << 29)	
+
 	/* Segmentation offload features */
 #define NETIF_F_GSO_SHIFT	16
 #define NETIF_F_GSO_MASK	0x00ff0000