laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/30231 )
Change subject: fix compilation with gcc-11
......................................................................
fix compilation with gcc-11
/usr/lib/gcc/arm-none-eabi/11.3.1/../../../arm-none-eabi/bin/ld: cuart_driver_asf4_usart_async.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: multiple definition of `dma_m2m_complete_flag'; atmel_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: first defined here
/usr/lib/gcc/arm-none-eabi/11.3.1/../../../arm-none-eabi/bin/ld: command.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: multiple definition of `dma_m2m_complete_flag'; atmel_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: first defined here
/usr/lib/gcc/arm-none-eabi/11.3.1/../../../arm-none-eabi/bin/ld: main.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: multiple definition of `dma_m2m_complete_flag'; atmel_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: first defined here
/usr/lib/gcc/arm-none-eabi/11.3.1/../../../arm-none-eabi/bin/ld: stdio_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: multiple definition of `dma_m2m_complete_flag'; atmel_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: first defined here
/usr/lib/gcc/arm-none-eabi/11.3.1/../../../arm-none-eabi/bin/ld: usb_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: multiple definition of `dma_m2m_complete_flag'; atmel_start.o:/space/home/laforge/projects/git/osmo-ccid-firmware/sysmoOCTSIM/gcc/../atmel_start.h:15: first defined here
Change-Id: I9a72dc0101de84ce39530c1503b32620b4777b4a
---
M sysmoOCTSIM/atmel_start.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/31/30231/1
diff --git a/sysmoOCTSIM/atmel_start.h b/sysmoOCTSIM/atmel_start.h
index 4892cbd..fb1e18f 100644
--- a/sysmoOCTSIM/atmel_start.h
+++ b/sysmoOCTSIM/atmel_start.h
@@ -12,7 +12,7 @@
#include "stdio_start.h"
/** flag set when the memory to memory DMA is complete */
-volatile bool dma_m2m_complete_flag;
+extern volatile bool dma_m2m_complete_flag;
/**
* Initializes MCU, drivers and middleware in the project
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/30231
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I9a72dc0101de84ce39530c1503b32620b4777b4a
Gerrit-Change-Number: 30231
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: neels.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-upf/+/30228 )
Change subject: tests/upf.vty: add some missing nodes to the test
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/30228
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I93c49dce23efaf9c533619112fb7a8114e258fa0
Gerrit-Change-Number: 30228
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 18 Nov 2022 19:22:42 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-upf/+/30228 )
Change subject: tests/upf.vty: add some missing nodes to the test
......................................................................
tests/upf.vty: add some missing nodes to the test
Change-Id: I93c49dce23efaf9c533619112fb7a8114e258fa0
---
M tests/upf.vty
1 file changed, 24 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-upf refs/changes/28/30228/1
diff --git a/tests/upf.vty b/tests/upf.vty
index d1cebe5..6d40841 100644
--- a/tests/upf.vty
+++ b/tests/upf.vty
@@ -16,10 +16,17 @@
OsmoUPF(config)# gtp
OsmoUPF(config-gtp)# list
...
+ mockup
+ no mockup
dev create DEVNAME [LISTEN_ADDR]
dev use DEVNAME
dev delete DEVNAME
+OsmoUPF(config-gtp)# mockup?
+ mockup don't actually send commands to the GTP kernel module, just return success
+OsmoUPF(config-gtp)# no ?
+ mockup operate GTP kernel module normally
+
OsmoUPF(config-gtp)# dev?
dev Configure the GTP device to use for encaps/decaps.
OsmoUPF(config-gtp)# dev ?
@@ -33,3 +40,20 @@
OsmoUPF(config-gtp)# dev delete ?
DEVNAME device name, e.g. 'apn0'
OsmoUPF(config-gtp)# exit
+
+OsmoUPF(config)# nft
+OsmoUPF(config-nft)# list
+...
+ mockup
+ no mockup
+ table-name TABLE_NAME
+
+OsmoUPF(config-nft)# mockup?
+ mockup don't actually send rulesets to nftables, just return success
+OsmoUPF(config-nft)# no ?
+ mockup operate nftables rulesets normally
+
+OsmoUPF(config-nft)# table-name?
+ table-name Set the nft inet table name to create and place GTP tunnel forwarding chains in (as in 'nft add table inet foo'). If multiple instances of osmo-upf are running on the same system, each osmo-upf must have its own table name. Otherwise the names of created forwarding chains will collide. The default table name is "osmo-upf".
+OsmoUPF(config-nft)# table-name ?
+ TABLE_NAME nft inet table name
--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/30228
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: I93c49dce23efaf9c533619112fb7a8114e258fa0
Gerrit-Change-Number: 30228
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: msuraev.
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/30226 )
Change subject: Add explicit link check to osmo_stream_srv_create()
......................................................................
Set Ready For Review
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/30226
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: If494eac5dcce6c5ae30e928b92e57067d5681a42
Gerrit-Change-Number: 30226
Gerrit-PatchSet: 5
Gerrit-Owner: msuraev <msuraev(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 18 Nov 2022 18:45:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/30216 )
Change subject: tbf_fsm: Move osmo_fsm_inst fi out of struct tbf_fsm_ctx
......................................................................
Patch Set 2:
(1 comment)
File src/tbf.h:
https://gerrit.osmocom.org/c/osmo-pcu/+/30216/comment/fefd7001_00819862
PS1, Line 260: state_fi
> Maybe move those internals to the private/protected part and only expose the *fi pointers?
The priv/protected stuff will disappear eventually when we move code to C.
In any case, the mainly used field is state_fsm.state_flags which I really need to know into cleaning because it's from old code and I may end up rewriting that.
> Anyways, not gonna block your patchset.
Yes, it's really bikeshed, whether we want to call it "main", "general" or "state" or whatever. There's more interesting stuff to clean up in there.
Also all this needs to be done iteratively with lots of steps, and I tend to spread burst of changes over time.
It's quite usual that in osmo-pcu I started doing 1 change and I end up having 10 patches cleaning up /refactoring stuff before being able to actually touch the thing I want to touch in first place.
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/30216
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I03e691ccf6a94431caa55653349158f5b85db017
Gerrit-Change-Number: 30216
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 18 Nov 2022 18:16:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/30216 )
Change subject: tbf_fsm: Move osmo_fsm_inst fi out of struct tbf_fsm_ctx
......................................................................
Patch Set 2:
(1 comment)
File src/tbf.h:
https://gerrit.osmocom.org/c/osmo-pcu/+/30216/comment/48202655_394a8f06
PS1, Line 260: state_fi
> It's not the "main" tbf, it's the "state" tbf as its name indicates.
FSMs are all about states, so "state FSM/FI" sounds like "butter oil" to me :P
What I meant is that the tbf_fsm exists during the whole lifetime of a TBF (so we can call it 'main'), while both ul_ass_fsm and dl_ass_fsm serve their purpose during the assignment period and remain no-op once the assignment is completed.
In theory both ul_ass_fsm and dl_ass_fsm can be children FSMs of the tbf_fsm, but of course you would still need to expose their *fi pointers in order to send events to them.
> Why allocating the context dynamically if it can be allocated as part of the tbf struct? there's no need for that.
Because this way you're exposing the internal data of the FSMs, which should not be directly accessible by anything else than the FSMs themselves. I have to admit that we do a similar trick with the bitvec's internal data array, so this is not super critical. But still a bit weird. Maybe move those internals to the private/protected part and only expose the *fi pointers?
Anyways, not gonna block your patchset.
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/30216
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I03e691ccf6a94431caa55653349158f5b85db017
Gerrit-Change-Number: 30216
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 18 Nov 2022 17:08:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment