]> git.baikalelectronics.ru Git - kernel.git/commit
dcbnl: Shorten all command handling functions
authorThomas Graf <tgraf@suug.ch>
Wed, 13 Jun 2012 02:54:55 +0000 (02:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jun 2012 22:46:34 +0000 (15:46 -0700)
commit454f8a580a6a425bbfeff0104022c4abb53a2166
tree8feb79621dd688e80573a8b5ebc3703e613086af
parent15a39ce136779364a5fedda8f62a97e6664c5c73
dcbnl: Shorten all command handling functions

Allocating and sending the skb in dcb_doit() allows for much
shorter and cleaner command handling functions.

The huge switch statement is replaced with an array based definition
of the handling function and reply message type.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c