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 19:00:08 +0000 (12:00 -0700)
commit1bb628d1358e9f8fb14f247e529d59e7352e0f26
tree8c2fe740551bb1256de08b3b1d760d09e9b5e571
parent27debf3278760bead4d1ffd5ea750a42433ec716
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