diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-11-19 02:44:04 +0100 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2020-11-24 03:53:22 +0100 |
commit | aac9016570f9c2727598ab3f68efb148ba259877 (patch) | |
tree | 1c92013f80dc794accf906d340ae7e84ae780cf3 /src/gb/gprs_ns2_internal.h | |
parent | 24a14ac80c46b7ac82dcddecb7068a484cd9e93c (diff) |
ns2: move link layer type into NSE
Even it was in theory possible to mix NS-VC ll types within
a NSE. This is an unrealistic configuration.
Further more to select the correct load sharing mechanism
the NSE must know the correct link layer.
Change-Id: I18dfd40a2429cd61b7c4a3dad5f226c64296f7d8
Diffstat (limited to 'src/gb/gprs_ns2_internal.h')
-rw-r--r-- | src/gb/gprs_ns2_internal.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gb/gprs_ns2_internal.h b/src/gb/gprs_ns2_internal.h index d7211e53..08ffac2e 100644 --- a/src/gb/gprs_ns2_internal.h +++ b/src/gb/gprs_ns2_internal.h @@ -123,6 +123,9 @@ struct gprs_ns2_nse { /*! true if this NSE has at least one alive VC */ bool alive; + /*! which link-layer are we based on? */ + enum gprs_ns2_ll ll; + struct osmo_fsm_inst *bss_sns_fi; }; @@ -164,8 +167,6 @@ struct gprs_ns2_vc { struct rate_ctr_group *ctrg; struct osmo_stat_item_group *statg; - /*! which link-layer are we based on? */ - enum gprs_ns2_ll ll; enum gprs_ns2_vc_mode mode; struct osmo_fsm_inst *fi; @@ -186,6 +187,9 @@ struct gprs_ns2_vc_bind { /*! if VCs use reset/block/unblock method. IP shall not use this */ enum gprs_ns2_vc_mode vc_mode; + /*! which link-layer are we based on? */ + enum gprs_ns2_ll ll; + /*! send a msg over a VC */ int (*send_vc)(struct gprs_ns2_vc *nsvc, struct msgb *msg); |