Commit 71c37a2f authored by Franck Messaoudi's avatar Franck Messaoudi

Update: increase the unmber of UEs to 10.000

parent e23ae641
......@@ -4,7 +4,7 @@
#include <types.h>
#include <pfcp/pfcp_pdr.h>
#define PDRS_MAX_SIZE 10
#define PDRS_MAX_SIZE 10000
typedef struct pfcp_pdrs_s {
u32 pdrs_counter;
......
......@@ -5,8 +5,8 @@
#include <pfcp/pfcp_pdr.h>
#include <pfcp/pfcp_far.h>
#define SESSION_PDRS_MAX_SIZE 5000 // 10
#define SESSION_FARS_MAX_SIZE 5000 // 10
#define SESSION_PDRS_MAX_SIZE 10000
#define SESSION_FARS_MAX_SIZE 10000
typedef struct pfcp_session_s {
seid_t_ seid;
......
......@@ -7,15 +7,15 @@
#include <types.h>
#include "arp_table_maps.h"
#define ARP_ENTRIES_MAX_SIZE 12
#define FAR_TAILS_MAX 1
#define ARP_ENTRIES_MAX_SIZE 10000
#define FAR_TAILS_MAX 20
#define MAX_INTERFACES 10
#define MAX_FAR_PROGRAMS 100
#define MAX_FAR_PROGRAMS 10000
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, FAR_TAILS_MAX); // 1,
__uint(max_entries, FAR_TAILS_MAX);
__type(key, u8);
__type(value, pfcp_far_t_);
} m_far SEC(".maps");
......@@ -23,23 +23,23 @@ struct {
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_DEVMAP);
__uint(max_entries, MAX_INTERFACES); // 10,
__type(key, u32); // id
__type(value, u32); // tx port
__uint(max_entries, MAX_INTERFACES);
__type(key, u32); // id
__type(value, u32); // tx port
} m_redirect_interfaces SEC(".maps");
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, ARP_ENTRIES_MAX_SIZE); // 2,
__type(key, u32); // IPv4 address
__type(value, struct s_arp_mapping); // <IP Address, MAC address>
__uint(max_entries, ARP_ENTRIES_MAX_SIZE);
__type(key, u32); // IPv4 address
__type(value, struct s_arp_mapping); // <IP Address, MAC address>
} m_arp_table SEC(".maps");
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, MAX_FAR_PROGRAMS); // 1,
__uint(max_entries, MAX_FAR_PROGRAMS);
__type(key, u32);
__type(value, u32);
} m_enforcing_qos SEC(".maps");
......
......@@ -12,9 +12,9 @@
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_DEVMAP);
__uint(max_entries, MAX_INTERFACES); // 10,
__type(key, u32); // id
__type(value, u32); // tx port
__uint(max_entries, MAX_INTERFACES);
__type(key, u32); // id
__type(value, u32); // tx port
} m_redirect_interfaces SEC(".maps");
/*---------------------------------------------------------------------------------------------------------------*/
......@@ -22,7 +22,7 @@ struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, INTERFACE_ENTRIES_MAX);
__type(key, e_reference_point);
__type(value, struct s_interface); // 6,
__type(value, struct s_interface);
} m_upf_interfaces SEC(".maps");
#endif // __INTERFACES_MAP_H__
\ No newline at end of file
......@@ -12,7 +12,7 @@
#include "interfaces.h"
#include "session_id.h"
#define MAX_LENGTH 5000 // 10
#define MAX_LENGTH 10000
#define INTERFACE_ENTRIES_MAX 12
#define MAX_UEs 100000
......@@ -59,7 +59,7 @@ struct {
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, INTERFACE_ENTRIES_MAX); // 6,
__uint(max_entries, INTERFACE_ENTRIES_MAX);
__type(key, e_reference_point);
__type(value, struct s_interface);
} m_upf_interfaces SEC(".maps");
......
......@@ -8,9 +8,9 @@
#include <ie/fteid.h>
#include <ie/fseid.h>
#define MAX_LENGTH 5000 // 10
#define PDR_ENTRIES_MAX_SIZE 5000 // 10
#define FAR_ENTRIES_MAX_SIZE 5000 // 10
#define MAX_LENGTH 10000
#define PDR_ENTRIES_MAX_SIZE 10000
#define FAR_ENTRIES_MAX_SIZE 10000
#define ARP_ENTRIES_MAX_SIZE 12
/*---------------------------------------------------------------------------------------------------------------*/
......@@ -24,33 +24,33 @@ struct {
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_DEVMAP);
__uint(max_entries, MAX_LENGTH); // 10,
__type(key, u32); // id
__type(value, u32); // tx port
__uint(max_entries, MAX_LENGTH);
__type(key, u32); // id
__type(value, u32); // tx port
} m_redirect_interfaces SEC(".maps");
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, PDR_ENTRIES_MAX_SIZE); // 10,
__type(key, teid_t_); // teid
__type(value, pfcp_pdr_t_); // assuming only one PDR
__uint(max_entries, PDR_ENTRIES_MAX_SIZE);
__type(key, teid_t_); // teid
__type(value, pfcp_pdr_t_); // assuming only one PDR
} m_teid_pdr SEC(".maps");
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, PDR_ENTRIES_MAX_SIZE); // 10,
__type(key, u32); // UE IP address
__type(value, pfcp_pdr_t_); // assuming only one PDR
__uint(max_entries, PDR_ENTRIES_MAX_SIZE);
__type(key, u32); // UE IP address
__type(value, pfcp_pdr_t_); // assuming only one PDR
} m_ueip_pdr SEC(".maps");
/*---------------------------------------------------------------------------------------------------------------*/
struct {
__uint(type, BPF_MAP_TYPE_HASH);
__uint(max_entries, ARP_ENTRIES_MAX_SIZE); // 2,
__type(key, u32); // IPv4 address
__type(value, unsigned char[8]); // MAC address
__uint(max_entries, ARP_ENTRIES_MAX_SIZE);
__type(key, u32); // IPv4 address
__type(value, unsigned char[8]); // MAC address
} m_arp_table SEC(".maps");
#endif // __PFCP_SESSION_PDR_LOOKUP_MAPS_H__
......@@ -5,7 +5,7 @@
#include <linux/bpf.h>
#include <types.h>
#define MAX_LENGTH 5000 // 10
#define MAX_LENGTH 10000
/*
* +------------------------------------------------------+
......@@ -21,7 +21,7 @@
struct {
__uint(type, BPF_MAP_TYPE_PROG_ARRAY);
__uint(max_entries, MAX_LENGTH); // 10,
__uint(max_entries, MAX_LENGTH);
__type(key, u32);
__type(value, s32);
} m_next_rule_prog SEC(".maps");
......
......@@ -7,9 +7,9 @@
#include "filter_key.h"
#include "qos_flow.h"
#define QFI_MAX_ENTRIES 5000
#define QFI_MAX_ENTRIES 10000
#define FIVE_QI_MAX_ENTRIES 100
#define QOS_FLOWS_MAX_ENTRIES 100
#define QOS_FLOWS_MAX_ENTRIES 10000
#define MAX_INTERFACES 10
/*---------------------------------------------------------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment