From: Mattias Rönnblom Date: Mon, 14 Jun 2021 10:23:58 +0000 (+0200) Subject: event/dsw: flag adapters capabilities X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c93f222d45a3b8c11bbd4fa3dbc3a4adcf105049;p=dpdk.git event/dsw: flag adapters capabilities Set the appropriate capability flags for the RX, crypto and timer eventdev adapters to use. Signed-off-by: Mattias Rönnblom Tested-by: Heng Wang --- diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 320a3784cb..2301a4b7a0 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -370,6 +370,34 @@ dsw_close(struct rte_eventdev *dev) return 0; } +static int +dsw_eth_rx_adapter_caps_get(const struct rte_eventdev *dev __rte_unused, + const struct rte_eth_dev *eth_dev __rte_unused, + uint32_t *caps) +{ + *caps = RTE_EVENT_ETH_RX_ADAPTER_SW_CAP; + return 0; +} + +static int +dsw_timer_adapter_caps_get(const struct rte_eventdev *dev __rte_unused, + uint64_t flags __rte_unused, uint32_t *caps, + const struct rte_event_timer_adapter_ops **ops) +{ + *caps = 0; + *ops = NULL; + return 0; +} + +static int +dsw_crypto_adapter_caps_get(const struct rte_eventdev *dev __rte_unused, + const struct rte_cryptodev *cdev __rte_unused, + uint32_t *caps) +{ + *caps = RTE_EVENT_CRYPTO_ADAPTER_SW_CAP; + return 0; +} + static struct rte_eventdev_ops dsw_evdev_ops = { .port_setup = dsw_port_setup, .port_def_conf = dsw_port_def_conf, @@ -384,6 +412,9 @@ static struct rte_eventdev_ops dsw_evdev_ops = { .dev_start = dsw_start, .dev_stop = dsw_stop, .dev_close = dsw_close, + .eth_rx_adapter_caps_get = dsw_eth_rx_adapter_caps_get, + .timer_adapter_caps_get = dsw_timer_adapter_caps_get, + .crypto_adapter_caps_get = dsw_crypto_adapter_caps_get, .xstats_get = dsw_xstats_get, .xstats_get_names = dsw_xstats_get_names, .xstats_get_by_name = dsw_xstats_get_by_name