datapath: Provide compatibility code for SET_ETHTOOL_OPS constness.
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 17:27:10 +0000 (09:27 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:16 +0000 (17:10 -0800)
commitf981c8b0da9c8efec309064367e36338518eba15
tree436746bad68c3bc14368341bfd67f251e1b3a284
parent84a2398d1634ffe671d4a6511676802b762d6cd3
datapath: Provide compatibility code for SET_ETHTOOL_OPS constness.

On 2.6.18 dev->ethtool_ops was not marked as const.  This adds a
compatibility macro that casts away the constness so we can mark
our ethtool ops as const on later kernels.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/linux-2.6/compat-2.6/include/linux/netdevice.h