neels has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-pfcp/+/29006 )
Change subject: comment / whitespace tweaks in pfcp_endpoint.c
......................................................................
comment / whitespace tweaks in pfcp_endpoint.c
Related: SYS#5599
Change-Id: Ia2818106fe257a237d1875034b77c1d4cb136fa1
---
M src/libosmo-pfcp/pfcp_endpoint.c
1 file changed, 8 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-pfcp refs/changes/06/29006/1
diff --git a/src/libosmo-pfcp/pfcp_endpoint.c b/src/libosmo-pfcp/pfcp_endpoint.c
index 68d0a21..83a689f 100644
--- a/src/libosmo-pfcp/pfcp_endpoint.c
+++ b/src/libosmo-pfcp/pfcp_endpoint.c
@@ -57,22 +57,22 @@
/*! Entry of pfcp_endpoint message queue of PFCP messages, for re-transsions. */
struct osmo_pfcp_queue_entry {
- /* entry in per-peer list of messages waiting for a response */
+ /* entry in osmo_pfcp_endpoint.sent_requests or .sent_responses */
struct llist_head entry;
/* back-pointer */
struct osmo_pfcp_endpoint *ep;
/* message we have transmitted */
struct osmo_pfcp_msg *m;
- /* T1 timer: How long to wait for response before retransmitting */
+ /* T1 timer: wait for response before retransmitting request / keep response in case the
same request is
+ * received again. */
struct osmo_timer_list t1;
/* N1: number of pending re-transmissions */
unsigned int n1_remaining;
};
-/* Find a matching osmo_pfcp_queue_entry for given rx_hdr.
+/* Find a matching osmo_pfcp_queue_entry for given rx.
* A returned osmo_pfcp_queue_entry is guaranteed to be a Response if rx is a Request,
and vice versa. */
-static struct osmo_pfcp_queue_entry *
-osmo_pfcp_queue_find(struct llist_head *queue, const struct osmo_pfcp_msg *rx)
+static struct osmo_pfcp_queue_entry *osmo_pfcp_queue_find(struct llist_head *queue, const
struct osmo_pfcp_msg *rx)
{
struct osmo_pfcp_queue_entry *qe;
/* It's important to match only a Request to a Response and vice versa, because the
remote peer makes its own
@@ -100,6 +100,9 @@
return 0;
}
+/* Global timer definitions for PFCP operation, provided for convenience. A caller of the
PFCP API may decide to use
+ * these in osmo_pfcp_endpoint and own FSM implementations. To make these user
configurable, it is convenient to add
+ * osmo_pfcp_tdefs as one of your program's osmo_tdef_group entries and call
osmo_tdef_vty_init(). */
struct osmo_tdef osmo_pfcp_tdefs[] = {
{ .T = OSMO_PFCP_TIMER_HEARTBEAT_REQ, .default_val = 15, .unit = OSMO_TDEF_S,
.desc = "PFCP Heartbeat Request period, how long to wait between issuing
requests"
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-pfcp/+/29006
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-pfcp
Gerrit-Branch: master
Gerrit-Change-Id: Ia2818106fe257a237d1875034b77c1d4cb136fa1
Gerrit-Change-Number: 29006
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: newchange