Skip to content

Commit

Permalink
script: Decoupling XDP_TBS related configuration from OPC-UA server code
Browse files Browse the repository at this point in the history
Changes List:
- Add support for XDP_TBS and NON-XDP_TBS mode on OPC-UA server code
- Update README_install.md

Signed-off-by: Goh Wei Sheng <wei.sheng.goh@intel.com>
  • Loading branch information
ws-intel committed Nov 3, 2022
1 parent 1e6aa2e commit 2b45a40
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ NOTE
-----------------------------------------------------------------------------------

2. Table of current supported application according to xdp_tbs availability on the system.


| tsq | txrx-tsn | opcua-server |
-----------------------------------------------------------------------------------
Expand All @@ -77,6 +76,8 @@ Default build (NO -t) is enabling XDP feature and Intel-specific XDP+TBS feature

Note: Effort is ongoing to decouple libopen62541-iotg fork and opcua-server from XDP_TBS Intel implementation.

Note: Performance of OPC UA related tests are not guarantee without Intel specific XDP+TBS support in tsn ref sw.

## Tsn sw ref dependencies installation

Refer to [Tsn Ref Sw Dependencies](DEPENDENCIES.md)
5 changes: 5 additions & 0 deletions src/opcua-tsn/opcua_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ void *pub_thread(void *arg)
sizeof(UA_EthernetETFWriterGroupTransportDataType));

ethernetETFtransportSettings.txtime_enabled = UA_TRUE;
#ifndef WITH_XDPTBS
if (g_sData->useXDP) {
ethernetETFtransportSettings.txtime_enabled = UA_FALSE;
}
#endif
ethernetETFtransportSettings.transmission_time = 0;

/* Encapsulate ETF config in transportSettings */
Expand Down
5 changes: 5 additions & 0 deletions src/opcua-tsn/opcua_publish.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ void addPubSubConnection(UA_Server *server, UA_NodeId *connId,
connectionConfig.etfConfiguration.socketPriority = socketPrio > 0 ?
socketPrio : -1;
connectionConfig.etfConfiguration.sotxtimeEnabled = UA_TRUE;
#ifndef WITH_XDPTBS
if (sdata->useXDP) {
connectionConfig.etfConfiguration.sotxtimeEnabled = UA_FALSE;
}
#endif

if (sdata->useXDP) {
connectionConfig.xdp_queue = pdata->xdpQueue;
Expand Down

0 comments on commit 2b45a40

Please sign in to comment.