linux/drivers/net/ethernet/intel/ixgbe
Ben Hutchings 473e64ee46 ethtool: Update ethtool_rxnfc::rule_cnt on return from ETHTOOL_GRXCLSRLALL
A user-space process must use ETHTOOL_GRXCLSRLCNT to find the number
of classification rules, then allocate a buffer of the right size,
then use ETHTOOL_GRXCLSRLALL to fill the buffer.  If some other
process inserts or deletes a rule between those two operations,
the user buffer might turn out to be the wrong size.

If it's too small, the return value will be -EMSGSIZE.  But if it's
too large, there is no indication of this.  Fix this by updating
the rule_cnt field on return.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-09-16 19:25:10 -04:00
..
ixgbe_82598.c ixgbe: cleanup reset paths 2011-09-15 21:26:16 -07:00
ixgbe_82599.c ixgbe: cleanup reset paths 2011-09-15 21:26:16 -07:00
ixgbe_common.c ixgbe: clear RNBC only for 82598 2011-08-29 01:35:28 -07:00
ixgbe_common.h
ixgbe_dcb_82598.c
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c ixgbe: PFC not cleared on X540 devices 2011-08-29 01:25:51 -07:00
ixgbe_dcb_82599.h
ixgbe_dcb_nl.c ixgbe: consolidate, setup for multiple traffic classes 2011-08-29 01:18:13 -07:00
ixgbe_dcb.c
ixgbe_dcb.h
ixgbe_ethtool.c ethtool: Update ethtool_rxnfc::rule_cnt on return from ETHTOOL_GRXCLSRLALL 2011-09-16 19:25:10 -04:00
ixgbe_fcoe.c
ixgbe_fcoe.h
ixgbe_main.c Merge git://github.com/Jkirsher/net-next 2011-09-16 15:18:02 -04:00
ixgbe_mbx.c
ixgbe_mbx.h
ixgbe_phy.c
ixgbe_phy.h
ixgbe_sriov.c
ixgbe_sriov.h
ixgbe_type.h ixgbe: cleanup reset paths 2011-09-15 21:26:16 -07:00
ixgbe_x540.c ixgbe: cleanup reset paths 2011-09-15 21:26:16 -07:00
ixgbe.h ixgbe: Correctly name and handle MSI-X other interrupt 2011-09-15 21:32:04 -07:00
Makefile