Thread (26 messages) 26 messages, 5 authors, 2013-12-21

Re: [net-next v3 14/16] i40e: make a define from a large constant

flat view

From: Jeff Kirsher <hidden>
Date: 2013-12-20 20:12:12

On Fri, 2013-12-20 at 10:40 -0800, Joe Perches wrote:
On Fri, 2013-12-20 at 10:21 -0800, Jeff Kirsher wrote:
quoted
Make a define used in the header file by both VF and PF drivers.
[]
quoted
diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.h b/drivers/net/ethernet/intel/i40e/i40e_txrx.h
[]
quoted
@@ -66,6 +66,26 @@ enum i40e_dyn_idx_t {
[]
quoted
+/* Supported RSS offloads */
+#define I40E_DEFAULT_RSS_HENA ( \
+	((u64)1 << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP) | \
BIT_ULL
quoted
+	((u64)1 << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP) | \
etc...
Joe, I am not seeing widespread use of the macro BIT_ULL, so what is the
driving factor to use the macro?  I know you mentioned this on a
previous patch I pushed and wanted to ask then, but simply forgot.

Attachments

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