linux_dsm_epyc7002/drivers/net/ethernet/intel/igbvf
Mitch A Williams 0e90b49ca4 igbvf: fix divide by zero
Using ethtool -C ethX rx-usecs 0 crashes with a divide by zero.
Refactor this function to fix this issue and make it more clear
what the intent of each conditional is. Add comment regarding
using a setting of zero.

CC: stable <stable@vger.kernel.org> [3.3+]
CC: David Ahern <daahern@cisco.com>
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-30 17:40:45 -07:00
..
defines.h igbvf: Use ETH_ALEN 2012-03-19 16:53:08 -04:00
ethtool.c igbvf: fix divide by zero 2012-06-30 17:40:45 -07:00
igbvf.h igbvf: refactor Interrupt Throttle Rate code 2012-02-07 03:49:23 -08:00
Makefile igbvf: change copyright date 2012-02-03 03:07:15 -08:00
mbx.c igbvf: change copyright date 2012-02-03 03:07:15 -08:00
mbx.h igbvf: change copyright date 2012-02-03 03:07:15 -08:00
netdev.c igbvf: fix the bug when initializing the igbvf 2012-04-30 18:54:31 -07:00
regs.h igbvf: change copyright date 2012-02-03 03:07:15 -08:00
vf.c igbvf: Use ETH_ALEN 2012-03-19 16:53:08 -04:00
vf.h igbvf: change copyright date 2012-02-03 03:07:15 -08:00