ethtool: Compat handling for struct ethtool_rxnfc
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 17 Mar 2011 07:34:32 +0000 (07:34 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 18:35:41 +0000 (11:35 -0700)
commit3bc0f0aa75f0b70c022681060b699e3ba27d34d1
treedcd25ce73b538ecb9398d9a43854eb3b6add5f14
parente53d1c2854cf47801783569ed156076d6c2b2b3e
ethtool: Compat handling for struct ethtool_rxnfc

commit 3a7da39d165e0c363c294feec119db1427032afd upstream.

This structure was accidentally defined such that its layout can
differ between 32-bit and 64-bit processes.  Add compat structure
definitions and an ioctl wrapper function.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/ethtool.h
net/socket.c