]> git.openfabrics.org - ~emulex/for-vlad/compat.git/commitdiff
compat: backport ethtool_flags
authorVipul Pandya <vipul@chelsio.com>
Thu, 10 May 2012 12:36:49 +0000 (18:06 +0530)
committerVipul Pandya vipul@chelsio.com <vipulp@openfabrics.org>
Tue, 15 May 2012 15:16:51 +0000 (08:16 -0700)
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
include/linux/compat-2.6.37.h

index e097ee31c9ef7ec42de58abec9d5bc76934bdd8d..e368a9e1b91c2e26219f07e7b95adf7eef2eafb6 100644 (file)
@@ -154,6 +154,22 @@ static inline bool skb_has_frag_list(const struct sk_buff *skb)
        return skb_shinfo(skb)->frag_list != NULL;
 }
 
+/* boolean flags controlling per-interface behavior characteristics.
+ * When reading, the flag indicates whether or not a certain behavior
+ * is enabled/present.  When writing, the flag indicates whether
+ * or not the driver should turn on (set) or off (clear) a behavior.
+ *
+ * Some behaviors may read-only (unconditionally absent or present).
+ * If such is the case, return EINVAL in the set-flags operation if the
+ * flag differs from the read-only value.
+ *
+ * Adding missing enums for ethtool_flags in 2.6.32 kernel.
+ */
+enum additional_ethtool_flags {
+    ETH_FLAG_TXVLAN         = (1 << 7),     /* TX VLAN offload enabled */
+    ETH_FLAG_RXVLAN         = (1 << 8),     /* RX VLAN offload enabled */
+};
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) */
 
 #endif /* LINUX_26_37_COMPAT_H */