From: Yan Burman Date: Thu, 7 Feb 2013 02:25:19 +0000 (+0000) Subject: net/mlx4_en: Optimize loopback related checks in data path X-Git-Tag: v3.9-rc1~139^2~138^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79aeaccd915c527a75f2cb01682eab160bed4f48;p=pandora-kernel.git net/mlx4_en: Optimize loopback related checks in data path Currently there are relatively complex conditional checks in the fast path, for TX loopback enabling and resulting RX filter logic. Move elaborate if's out of data path, replace them with a single flag for each state and update that state from appropriate places. Also, in native (non SRIOV) mode and not in loopback or in selftest, there is no need to try and filter out packets that HW loopback-ed, as in native mode we do not loopback packets anymore. Signed-off-by: Yan Burman Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed