ethtool: Compat handling for struct ethtool_rxnfc
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 17 Mar 2011 07:34:32 +0000 (07:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2011 22:13:11 +0000 (15:13 -0700)
commit3a7da39d165e0c363c294feec119db1427032afd
tree901e54990fdd90d6f90d27533c36e61858216e34
parent5e5069b41d5b82bcadc1dbf73f48476b428c102f
ethtool: Compat handling for struct ethtool_rxnfc

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>
Cc: stable@kernel.org [2.6.30+]
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/socket.c