diff options
author | Felix Manlunas <felix.manlunas@cavium.com> | 2018-08-29 04:51:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-30 06:07:41 +0300 |
commit | edd572d72f8c6d7179c3943edaea3bcfee9484f5 (patch) | |
tree | f2a83a4f9097f6903cb034ecb9f395b01c3e5b02 /drivers/net/ethernet/cavium/liquidio/octeon_nic.h | |
parent | 6870957ed5bc3a4c15fe556e3ebbb4e2f41d3eed (diff) | |
download | linux-edd572d72f8c6d7179c3943edaea3bcfee9484f5.tar.xz |
liquidio: change octnic_ctrl_pkt to do synchronous soft commands
1. Change struct octnic_ctrl_pkt to support synchronous operation.
2. Change code which use structure octnic_ctrl_pkt to send sc's
synchronously.
Signed-off-by: Weilin Chang <weilin.chang@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/octeon_nic.h')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/octeon_nic.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_nic.h b/drivers/net/ethernet/cavium/liquidio/octeon_nic.h index de4130d26a98..87dd6f89ce51 100644 --- a/drivers/net/ethernet/cavium/liquidio/octeon_nic.h +++ b/drivers/net/ethernet/cavium/liquidio/octeon_nic.h @@ -52,20 +52,13 @@ struct octnic_ctrl_pkt { /** Input queue to use to send this command. */ u64 iq_no; - /** Time to wait for Octeon software to respond to this control command. - * If wait_time is 0, OSI assumes no response is expected. - */ - size_t wait_time; - /** The network device that issued the control command. */ u64 netpndev; /** Callback function called when the command has been fetched */ octnic_ctrl_pkt_cb_fn_t cb_fn; - u32 status; - u16 *response_code; - struct completion *completion; + u32 sc_status; }; #define MAX_UDD_SIZE(nctrl) (sizeof((nctrl)->udd)) |