summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/oki-semi
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2012-05-31 14:42:26 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-07-22 01:05:59 +0200
commit95447461fa9ae3d879c84c1d2f2f8da2fdcd8f34 (patch)
tree66288cc983efed26cf494915470dda8c80dbb6df /drivers/net/ethernet/oki-semi
parentixgbe: Use num_tcs.pg_tcs as upper limit for TC when checking based on UP (diff)
downloadlinux-95447461fa9ae3d879c84c1d2f2f8da2fdcd8f34.tar.xz
linux-95447461fa9ae3d879c84c1d2f2f8da2fdcd8f34.zip
ixgbe: fix RAR entry counting for generic and fdb_add()
Do RAR entry accounting correctly so that errors are reported and promisc mode is set correctly when the number of entries exceeds the hardware limits. This can happen with many macvlan devices attached to the PF or by adding many fdb entries in SR-IOV modes. Also this includes a small refactor to fdb_add() to avoid having so many nested if/else statements after adding a check for the number or RAR entries. The max entries for the PF is currently 16 we allow 15 additional entries to account for the defined MAC. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/oki-semi')
0 files changed, 0 insertions, 0 deletions