summaryrefslogtreecommitdiffstats
path: root/command_table.hpp
Commit message (Collapse)AuthorAgeFilesLines
* netipmid: make Handler asynchronousVernon Mauery2019-02-251-6/+4
| | | | | | | | | | | | | | | | | | | | | | The dbus call to the main ipmid queue was up to this point synchronous, which means it blocks all other networking and execution until the main queue returns (which may be on the order of seconds for some commands). This is an unacceptable delay, especially when this queue is responsible for timely updates of SOL traffic. This turns the call into an asynchronous one by leveraging shared pointers and an optional action on destruction. So as long as a reference to the Handler object exists, it will live on, waiting to send its response. Once the async dbus call has returned and set the reply in the Handler, it will drop the reference to the shared pointer and the destructor will send out the response over the channel. Tested-by: Run multiple sessions at the same time while monitoring dbus traffic. See that the requests and responses may be interleaved instead of serial. Change-Id: I16fca8dc3d13624eeb1592ec36d1a9af6575f115 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* netipmid: Update netipmid to use ipmid as the main queueVernon Mauery2019-02-251-55/+22
| | | | | | | | | | | | All ipmi processing is now done in the main ipmi queue (phosphor-host-ipmid) and messages are passed via dbus. This removes the handler registration for providers and just passes the message along to the main queue instead of executing the provider in-situ. This makes the net-ipmid more like the bt-bridge or kcs-bridge that are simple channel handlers that move messages from a medium to the queue. Change-Id: Icc9d580fd5546505c95acf0bea47c70e09809b7d Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Convert host-ipmid -> libipmidWilliam A. Kennington III2019-02-191-1/+1
| | | | | | | | | phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library. Change-Id: Ifb914004df2b73cff913bf653db14ff2e710434f Signed-off-by: William A. Kennington III <wak@google.com>
* netipmid: apply clang-format rulesVernon Mauery2018-11-021-178/+179
| | | | | | | | Lots of whitespace change. Let clang-format do its job and keep the code looking nice. Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Small fixes for net ipmi handlerFeist, James2017-11-061-2/+2
| | | | | | | | | | Host ipmid handler will not re-register commands, so make the net handler follow this by skipping later registrations. Also pass size of command to handlers for length checks to work. Host ipmi handler passes this parameter correctly. Change-Id: I8eb1d645eff405b91e471433085025b6835f0bd2 Signed-off-by: Feist, James <james.feist@linux.intel.com>
* Correct doxygen syntax in phosphor-net-ipmidTom Joseph2017-05-231-7/+7
| | | | | | | Resolves openbmc/openbmc#1147 Change-Id: I57ab1b09ec1bf308cc3d97cd30b2d18564beb38b Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Change the signature of the command handler functions.Tom Joseph2017-04-251-1/+1
| | | | | | | Resolves openbmc/openbmc#857 Change-Id: I0b7ca6665dd89629838a238d77aff67fec1818c7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Command Table Entry for IPMI Provider CommandsTom2017-01-181-0/+41
| | | | | | | | This patch defines an entry for hooking IPMI provider commands in the command table and to execute the commands. Change-Id: I8a8fb7c06ccc1a3c4397540419b983556b9da6c3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Command Router to handle commandsTom Joseph2016-12-161-0/+255
This class encapsulates the details regarding the execution of the command and has routines for registering and execution of the command. Change-Id: Idf26e1f60f9f89aa5261fde89577ec7ddc26c096 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud