|
@@ -1058,38 +1058,6 @@ static void free_netsgbuf_with_resp(void *buf)
|
|
|
/* Don't free the skb yet */
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * \brief Callback for getting interface configuration
|
|
|
- * @param status status of request
|
|
|
- * @param buf pointer to resp structure
|
|
|
- */
|
|
|
-static void if_cfg_callback(struct octeon_device *oct,
|
|
|
- u32 status __attribute__((unused)), void *buf)
|
|
|
-{
|
|
|
- struct octeon_soft_command *sc = (struct octeon_soft_command *)buf;
|
|
|
- struct liquidio_if_cfg_context *ctx;
|
|
|
- struct liquidio_if_cfg_resp *resp;
|
|
|
-
|
|
|
- resp = (struct liquidio_if_cfg_resp *)sc->virtrptr;
|
|
|
- ctx = (struct liquidio_if_cfg_context *)sc->ctxptr;
|
|
|
-
|
|
|
- oct = lio_get_device(ctx->octeon_id);
|
|
|
- if (resp->status)
|
|
|
- dev_err(&oct->pci_dev->dev, "nic if cfg instruction failed. Status: %llx\n",
|
|
|
- CVM_CAST64(resp->status));
|
|
|
- WRITE_ONCE(ctx->cond, 1);
|
|
|
-
|
|
|
- snprintf(oct->fw_info.liquidio_firmware_version, 32, "%s",
|
|
|
- resp->cfg_info.liquidio_firmware_version);
|
|
|
-
|
|
|
- /* This barrier is required to be sure that the response has been
|
|
|
- * written fully before waking up the handler
|
|
|
- */
|
|
|
- wmb();
|
|
|
-
|
|
|
- wake_up_interruptible(&ctx->wc);
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* \brief Net device open for LiquidIO
|
|
|
* @param netdev network device
|
|
@@ -2171,7 +2139,7 @@ static int setup_nic_devices(struct octeon_device *octeon_dev)
|
|
|
OPCODE_NIC_IF_CFG, 0, if_cfg.u64,
|
|
|
0);
|
|
|
|
|
|
- sc->callback = if_cfg_callback;
|
|
|
+ sc->callback = lio_if_cfg_callback;
|
|
|
sc->callback_arg = sc;
|
|
|
sc->wait_time = 5000;
|
|
|
|