Thread (15 messages) 15 messages, 3 authors, 2011-06-24

Re: [net-next 03/11] ixgbe: update perfect filter framework to support retaining filters

flat view

From: Joe Perches <joe@perches.com>
Date: 2011-06-24 06:40:45

On Thu, 2011-06-23 at 23:03 -0700, Jeff Kirsher wrote:
From: Alexander Duyck <redacted>
Just trivia
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c
[]
quoted hunk ↗ jump to hunk
@@ -1484,6 +1427,101 @@ s32 ixgbe_fdir_add_signature_filter_82599(struct ixgbe_hw *hw,
 	return 0;
 }
 
+#define IXGBE_COMPUTE_BKT_HASH_ITERATION(_n) \
+do { \
+	u32 n = (_n); \
+	if (IXGBE_ATR_BUCKET_HASH_KEY & (0x01 << n)) \
+		bucket_hash ^= lo_hash_dword >> n; \
+	if (IXGBE_ATR_BUCKET_HASH_KEY & (0x01 << (n + 16))) \
+		bucket_hash ^= hi_hash_dword >> n; \
+} while (0);
Don't need ; after while (0)

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help