[PATCH v7 7/9] net/zxdh: add configure zxdh intr implementation
Stephen Hemminger
stephen at networkplumber.org
Sun Oct 27 18:07:59 CET 2024
On Tue, 22 Oct 2024 20:20:40 +0800
Junlong Wang <wang.junlong1 at zte.com.cn> wrote:
> +/* Interrupt handler triggered by NIC for handling specific interrupt. */
> +static void zxdh_fromriscv_intr_handler(void *param)
> +{
> + struct rte_eth_dev *dev = param;
> + struct zxdh_hw *hw = dev->data->dev_private;
> + uint64_t virt_addr = 0;
> +
> + virt_addr = (uint64_t)(hw->bar_addr[ZXDH_BAR0_INDEX] + ZXDH_CTRLCH_OFFSET);
There is no need to initialize a variable like virt_addr which is set later.
More information about the dev
mailing list