X-Git-Url: https://git.openfabrics.org/?p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git;a=blobdiff_plain;f=include%2Flinux%2Fcompat-2.6.37.h;h=e368a9e1b91c2e26219f07e7b95adf7eef2eafb6;hp=e097ee31c9ef7ec42de58abec9d5bc76934bdd8d;hb=047d3c521306e131dbcc68889998d43e80a9f276;hpb=9e09c0c598b55b3c267a4a91995d2770e92e05e6 diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h index e097ee3..e368a9e 100644 --- a/include/linux/compat-2.6.37.h +++ b/include/linux/compat-2.6.37.h @@ -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 */