Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

enic: mask off some reserved bits in CQ descriptor for future use

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Scott Feldman and committed by
David S. Miller
cb3c7669 27372bf5

+3 -2
+3 -2
drivers/net/enic/cq_desc.h
··· 44 44 u8 type_color; 45 45 }; 46 46 47 - #define CQ_DESC_TYPE_BITS 7 47 + #define CQ_DESC_TYPE_BITS 4 48 48 #define CQ_DESC_TYPE_MASK ((1 << CQ_DESC_TYPE_BITS) - 1) 49 49 #define CQ_DESC_COLOR_MASK 1 50 + #define CQ_DESC_COLOR_SHIFT 7 50 51 #define CQ_DESC_Q_NUM_BITS 10 51 52 #define CQ_DESC_Q_NUM_MASK ((1 << CQ_DESC_Q_NUM_BITS) - 1) 52 53 #define CQ_DESC_COMP_NDX_BITS 12 ··· 59 58 const struct cq_desc *desc = desc_arg; 60 59 const u8 type_color = desc->type_color; 61 60 62 - *color = (type_color >> CQ_DESC_TYPE_BITS) & CQ_DESC_COLOR_MASK; 61 + *color = (type_color >> CQ_DESC_COLOR_SHIFT) & CQ_DESC_COLOR_MASK; 63 62 64 63 /* 65 64 * Make sure color bit is read from desc *before* other fields