From: Jesse Brandeburg Date: Wed, 20 Nov 2013 10:02:49 +0000 (+0000) Subject: i40e: check multi-bit state correctly X-Git-Tag: v3.14-rc1~94^2~568^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a4949200812b865a8c101958bdde1b7f8cdd020;p=pandora-kernel.git i40e: check multi-bit state correctly The hash is reported correctly in the rss field if and only if the filter status is 3. Other values of filter status mean different things and we shouldn't depend on a bitwise result. The issue was that a & b --> returns true for b={1,2,3} the fix is a & b == b Also refactor this function to use constant operations because we are in fast path. Change-Id: I4e29be87439c1cf8b60bc31bea29dff89596c013 Signed-off-by: Jesse Brandeburg Tested-by: Kavindya Deegala Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed