Re: [PATCH 1/1] ixgbevf: replace enum with MACROs

2016-07-20 Thread Alexander Duyck
On Wed, Jul 20, 2016 at 3:41 AM, wrote: > From: Zhu Yanjun > > With the original enum, when a several bits state is set, it is > possible that the wrong test occurs. > > For example, > > a state is 0x3, its bits are 11. When testing a state 0x2 whose > bits are 10, it is difficult to confirm tha

[PATCH 1/1] ixgbevf: replace enum with MACROs

2016-07-20 Thread zyjzyj2000
From: Zhu Yanjun With the original enum, when a several bits state is set, it is possible that the wrong test occurs. For example, a state is 0x3, its bits are 11. When testing a state 0x2 whose bits are 10, it is difficult to confirm that state 0x2 is set or not. As such, the MACROs are defin

[PATCH 1/1] ixgbevf: replace enum with MACROs

2016-07-20 Thread zyjzyj2000
Sorry. Please ignore the last mail because there are some typos in the patch. In this patch, these typos are corrected. Zhu Yanjun