From: John Fastabend Date: Thu, 31 May 2012 12:42:26 +0000 (+0000) Subject: ixgbe: fix RAR entry counting for generic and fdb_add() X-Git-Tag: v3.6-rc1~125^2~35^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95447461fa9ae3d879c84c1d2f2f8da2fdcd8f34;p=pandora-kernel.git 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 Tested-by: Phil Schmitt Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed