ixgbe: Cleanup FDB handling code
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 17 Jul 2014 02:11:22 +0000 (02:11 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 4 Sep 2014 08:38:32 +0000 (01:38 -0700)
commitbcfd3432d1625ef749a8697d194010d0c75b97c9
treec48b38b9f433564bdf622950aa9810d99cb482ba
parentc24817b6babd4b966e68db536c004949bf24dae7
ixgbe: Cleanup FDB handling code

This change makes it so that the behavior for FDB handling is consistent
between both the SR-IOV and non-SR-IOV cases.  The main change here is that we
perform bounds checking on the number of SR-IOV addresses regardless of if
SR-IOV is enabled or not as we can only support a certain number of addresses
in the hardware.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c