]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: cleanup MCC async event processing code
authorSathya Perla <sathya.perla@emulex.com>
Fri, 30 May 2014 13:36:28 +0000 (19:06 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 May 2014 00:27:33 +0000 (17:27 -0700)
commitf41164e19670eea8d02e29cbc32bfa48e9a148ec
tree2b1bcc62a258f3a88cb6ef345a3936c8ece5c39d
parentf502b7dc9b42a30e3c73d067cdab973e0e6cc7f4
be2net: cleanup MCC async event processing code

The MCC async event processing code has 2 issues:
a) because of long struct names the code indentation is badly broken
b) description and definitions of how an MCC completion is interpreted as
   an async event are confusing (for e.g. the last word of an MCC event is
   named "code", while "code" is just a sub-field of the last word.)

This patch fixes the structure definitions, comments and re-factors code
as needed.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h