linux/drivers/net/ethernet/sun
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
..
cassini.c cassini: convert to SKB paged frag API. 2011-08-30 17:58:01 -04:00
cassini.h
Kconfig drivers/net/ethernet/*: Enabled vendor Kconfig options 2011-08-27 00:58:56 -07:00
Makefile net: Fix sungem_phy sharing. 2011-08-16 00:16:49 -07:00
niu.c ethtool: Update ethtool_rxnfc::rule_cnt on return from ETHTOOL_GRXCLSRLALL 2011-09-16 19:25:10 -04:00
niu.h
sunbmac.c sunbmac: use standard #defines from mii.h. 2011-08-25 11:08:21 +02:00
sunbmac.h sunbmac: use standard #defines from mii.h. 2011-08-25 11:08:21 +02:00
sungem.c net: remove use of ndo_set_multicast_list in drivers 2011-08-17 20:22:03 -07:00
sungem.h
sunhme.c net: remove use of ndo_set_multicast_list in drivers 2011-08-17 20:22:03 -07:00
sunhme.h
sunqe.c net: remove use of ndo_set_multicast_list in drivers 2011-08-17 20:22:03 -07:00
sunqe.h
sunvnet.c net: remove use of ndo_set_multicast_list in drivers 2011-08-17 20:22:03 -07:00
sunvnet.h