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
Michael Black
OpenXG-RAN
Commits
2124e43d
Commit
2124e43d
authored
Jun 20, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly use RHEL_RELEASE_CODE for Fedora and RHEL
This reverts commit
4f44a102
.
parent
4f44a102
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
7 deletions
+34
-7
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
+8
-2
openair1/PHY/LTE_UE_TRANSPORT/linear_preprocessing_rec.c
openair1/PHY/LTE_UE_TRANSPORT/linear_preprocessing_rec.c
+6
-0
openair2/NETWORK_DRIVER/MESH/device.c
openair2/NETWORK_DRIVER/MESH/device.c
+9
-3
openair2/NETWORK_DRIVER/UE_IP/device.c
openair2/NETWORK_DRIVER/UE_IP/device.c
+11
-2
No files found.
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
View file @
2124e43d
...
...
@@ -41,8 +41,14 @@
#include <stdlib.h>
#include <string.h>
#include <linux/version.h>
#include <lapacke_utils.h>
#include <lapacke.h>
#if defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,4) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99)
#include <lapacke/lapacke_utils.h>
#include <lapacke/lapacke.h>
#else
#include <lapacke_utils.h>
#include <lapacke.h>
#endif
#include <cblas.h>
#include "linear_preprocessing_rec.h"
...
...
openair1/PHY/LTE_UE_TRANSPORT/linear_preprocessing_rec.c
View file @
2124e43d
...
...
@@ -14,8 +14,14 @@ data storage. */
#include <cblas.h>
#include <string.h>
#include <linux/version.h>
#if defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,4) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99)
#include <lapacke/lapacke_utils.h>
#include <lapacke/lapacke.h>
#else
#include <lapacke_utils.h>
#include <lapacke.h>
#endif
//#define DEBUG_PREPROC
...
...
openair2/NETWORK_DRIVER/MESH/device.c
View file @
2124e43d
...
...
@@ -198,7 +198,9 @@ int nas_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
// End debug information
netif_stop_queue
(
dev
);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) \
|| (defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,4) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99))
netif_trans_update
(
dev
);
#else
dev
->
trans_start
=
jiffies
;
...
...
@@ -267,7 +269,9 @@ void nas_tx_timeout(struct net_device *dev)
printk
(
"TX_TIMEOUT: begin
\n
"
);
// (struct nas_priv *)(dev->priv)->stats.tx_errors++;
(
priv
->
stats
).
tx_errors
++
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) \
|| (defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,4) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99))
netif_trans_update
(
dev
);
#else
dev
->
trans_start
=
jiffies
;
...
...
@@ -285,7 +289,9 @@ static const struct net_device_ops nasmesh_netdev_ops = {
.
ndo_set_mac_address
=
NULL
,
.
ndo_set_config
=
nas_set_config
,
.
ndo_do_ioctl
=
nas_CTL_ioctl
,
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,11,0)
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,11,0) \
|| (defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,5) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99))
.
extended
.
ndo_change_mtu
=
nas_change_mtu
,
#else
.
ndo_change_mtu
=
nas_change_mtu
,
...
...
openair2/NETWORK_DRIVER/UE_IP/device.c
View file @
2124e43d
...
...
@@ -239,7 +239,9 @@ int ue_ip_hard_start_xmit(struct sk_buff *skb_pP, struct net_device *dev_pP) {
// End debug information
netif_stop_queue
(
dev_pP
);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) \
|| (defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,4) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99))
netif_trans_update
(
dev_pP
);
#else
dev_pP
->
trans_start
=
jiffies
;
...
...
@@ -315,7 +317,9 @@ void ue_ip_tx_timeout(struct net_device *dev_pP)
printk
(
"[UE_IP_DRV][%s] begin
\n
"
,
__FUNCTION__
);
// (ue_ip_priv_t *)(dev_pP->priv_p)->stats.tx_errors++;
(
priv_p
->
stats
).
tx_errors
++
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) \\
||
(
defined
RHEL_RELEASE_CODE
&&
RHEL_RELEASE_CODE
>=
RHEL_RELEASE_VERSION
(
7
,
4
)
\
&&
RHEL_RELEASE_CODE
!=
RHEL_RELEASE_VERSION
(
9
,
99
))
netif_trans_update
(
dev_pP
);
#else
dev_pP
->
trans_start
=
jiffies
;
...
...
@@ -333,7 +337,12 @@ static const struct net_device_ops ue_ip_netdev_ops = {
.
ndo_set_mac_address
=
ue_ip_set_mac_address
,
.
ndo_set_config
=
ue_ip_set_config
,
.
ndo_do_ioctl
=
NULL
,
#if defined RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,5) \
&& RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(9,99)
.
extended
.
ndo_change_mtu
=
ue_ip_change_mtu
,
#else
.
ndo_change_mtu
=
ue_ip_change_mtu
,
#endif
.
ndo_tx_timeout
=
ue_ip_tx_timeout
,
.
ndo_change_rx_flags
=
ue_ip_change_rx_flags
,
};
...
...
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