Messages in this thread | | | From | saeed bishara <> | Date | Mon, 12 Nov 2012 14:31:05 +0200 | Subject | Re: [PATCH v2 1/3] net: Add support for hardware-offloaded encapsulation |
| |
> 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
| |