Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
63f6065d
Commit
63f6065d
authored
Jun 27, 2021
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intermeidary commit: updating benetel 4g driver to dpdk 20
parent
89e13cd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+2
-4
targets/ARCH/ETHERNET/benetel/4g/benetel.c
targets/ARCH/ETHERNET/benetel/4g/benetel.c
+2
-0
targets/ARCH/ETHERNET/benetel/4g/dpdk_driver.c
targets/ARCH/ETHERNET/benetel/4g/dpdk_driver.c
+2
-2
No files found.
cmake_targets/CMakeLists.txt
View file @
63f6065d
...
...
@@ -958,8 +958,6 @@ set_target_properties(tcp_bridge_oai PROPERTIES COMPILE_FLAGS "-fvisibility=hidd
######################################################################
include_directories
(
"/usr/include/dpdk"
)
set
(
HWLIB_BENETEL_4G_SOURCE
${
OPENAIR_TARGETS
}
/ARCH/ETHERNET/benetel/4g/benetel.c
${
OPENAIR_TARGETS
}
/ARCH/ETHERNET/benetel/4g/shared_buffers.c
...
...
@@ -969,9 +967,9 @@ set(HWLIB_BENETEL_4G_SOURCE
)
add_library
(
benetel_4g MODULE
${
HWLIB_BENETEL_4G_SOURCE
}
)
set_target_properties
(
benetel_4g PROPERTIES COMPILE_FLAGS
"-fvisibility=hidden -march=native -I
$ENV{RTE_SDK}/$ENV{RTE_TARGET}
/include"
)
set_target_properties
(
benetel_4g PROPERTIES COMPILE_FLAGS
"-fvisibility=hidden -march=native -I
/usr/local
/include"
)
SET
(
DPDK_LIBS
"-Wl,-rpath,
$ENV{RTE_SDK}/$ENV{RTE_TARGET}/lib -Wl,--whole-archive -L$ENV{RTE_SDK}/$ENV{RTE_TARGET}/lib
-ldpdk -Wl,--no-whole-archive"
)
SET
(
DPDK_LIBS
"-Wl,-rpath,
/usr/local/lib64 -Wl,--whole-archive -L/usr/local/lib64
-ldpdk -Wl,--no-whole-archive"
)
TARGET_LINK_LIBRARIES
(
benetel_4g
${
DPDK_LIBS
}
)
TARGET_LINK_LIBRARIES
(
benetel_4g pthread dl rt m numa
)
...
...
targets/ARCH/ETHERNET/benetel/4g/benetel.c
View file @
63f6065d
...
...
@@ -27,6 +27,7 @@
#include "low.h"
#include "common/utils/LOG/log.h"
#include "common/utils/LOG/vcd_signal_dumper.h"
#include "rte_version.h"
typedef
struct
{
eth_state_t
e
;
...
...
@@ -40,6 +41,7 @@ typedef struct {
int
trx_benetel_start
(
openair0_device
*
device
)
{
printf
(
"BENETEL: %s
\n
"
,
__FUNCTION__
);
printf
(
"DPDK Version %s
\n
"
,
rte_version
());
return
0
;
}
...
...
targets/ARCH/ETHERNET/benetel/4g/dpdk_driver.c
View file @
63f6065d
...
...
@@ -69,7 +69,7 @@ static int mac_updating = 1;
static
uint16_t
nb_rxd
=
RTE_TEST_RX_DESC_DEFAULT
;
static
uint16_t
nb_txd
=
RTE_TEST_TX_DESC_DEFAULT
;
/* ethernet addresses of ports */
static
struct
ether_addr
l2fwd_ports_eth_addr
[
RTE_MAX_ETHPORTS
];
static
struct
rte_
ether_addr
l2fwd_ports_eth_addr
[
RTE_MAX_ETHPORTS
];
/* mask of enabled ports */
static
uint32_t
l2fwd_enabled_port_mask
=
0
;
/* list of enabled ports */
...
...
@@ -149,7 +149,7 @@ l2fwd_simple_forward(struct rte_mbuf *m, unsigned portid, benetel_t *bs)
{
unsigned
char
*
buf
,
*
buf_tx
;
unsigned
int
len
;
struct
ether_hdr
*
eth
;
struct
rte_
ether_hdr
*
eth
;
unsigned
dst_port
;
int
sent
,
prach_ctrl
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment