Configure event dev Rx offload flags with rx adapter
start/stop callbacks.

Signed-off-by: Rahul Bhansali <rbhans...@marvell.com>
---
 drivers/event/cnxk/cnxk_eventdev_adptr.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c 
b/drivers/event/cnxk/cnxk_eventdev_adptr.c
index 5ec436382c..6d975362e8 100644
--- a/drivers/event/cnxk/cnxk_eventdev_adptr.c
+++ b/drivers/event/cnxk/cnxk_eventdev_adptr.c
@@ -331,9 +331,9 @@ int
 cnxk_sso_rx_adapter_start(const struct rte_eventdev *event_dev,
                          const struct rte_eth_dev *eth_dev)
 {
-       RTE_SET_USED(event_dev);
-       RTE_SET_USED(eth_dev);
-
+       struct cnxk_eth_dev *cnxk_eth_dev = eth_dev->data->dev_private;
+       struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);
+       dev->rx_offloads |= cnxk_eth_dev->rx_offload_flags;
        return 0;
 }
 
@@ -341,9 +341,9 @@ int
 cnxk_sso_rx_adapter_stop(const struct rte_eventdev *event_dev,
                         const struct rte_eth_dev *eth_dev)
 {
-       RTE_SET_USED(event_dev);
        RTE_SET_USED(eth_dev);
-
+       struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);
+       dev->rx_offloads = 0;
        return 0;
 }
 
-- 
2.25.1

Reply via email to