Skip to content

Commit

Permalink
eventdev: add port attribute for independent enqueue
Browse files Browse the repository at this point in the history
Independent enqueue support is added to DPDK 24.11.
Adding support for RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ attribute
to rte_event_port_attr_get() which was missing

Signed-off-by: Pravin Pathak <[email protected]>
  • Loading branch information
pkpathak authored and jerinjacobk committed Jan 22, 2025
1 parent b2ff5f6 commit 8c565bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/eventdev/rte_eventdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,14 @@ rte_event_port_attr_get(uint8_t dev_id, uint8_t port_id, uint32_t attr_id,
*attr_value = !!(config & RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL);
break;
}
case RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ:
{
uint32_t config;

config = dev->data->ports_cfg[port_id].event_port_cfg;
*attr_value = !!(config & RTE_EVENT_PORT_CFG_INDEPENDENT_ENQ);
break;
}
default:
return -EINVAL;
};
Expand Down
4 changes: 4 additions & 0 deletions lib/eventdev/rte_eventdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,10 @@ rte_event_port_quiesce(uint8_t dev_id, uint8_t port_id,
* Port attribute id for the implicit release disable attribute of the port.
*/
#define RTE_EVENT_PORT_ATTR_IMPLICIT_RELEASE_DISABLE 3
/**
* Port attribute id for the Independent Enqueue feature.
*/
#define RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ 4

/**
* Get an attribute from a port.
Expand Down

0 comments on commit 8c565bb

Please sign in to comment.