Thread (7 messages) flat view 7 messages, 3 authors, 2012-11-14

Re: [PATCH v2 1/3] net: Add support for hardware-offloaded encapsulation

From: saeed bishara <hidden>
Date: 2012-11-12 12:31:29
Also in: lkml

quoted hunk ↗ jump to hunk
diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h
index 5ac3212..6dd59a5 100644
--- a/include/linux/netdev_features.h
+++ b/include/linux/netdev_features.h
        NETIF_F_RXCSUM_BIT,             /* Receive checksumming offload */
+       NETIF_F_RXCSUM_ENC_BIT,         /* Receive checksuming offload */
+                                       /* for encapsulation */
in the future more features will be needed for tunneled packets (tso,
rxhash, etc..)
so I think it would make sense to add a new features variable for
tunneled packets, and the enum above will be used as is.
for example, if the driver supports checksum offloading for
encapsulated packets, then it will set the RXCSUM_BIT in that
variable:
netdev->encap_hw_features = NETIF_F_RXCSUM_BIT;
saeed
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help