<p>Pau Espin Pedrol <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/14296">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gtp: Introduce new pdp APIs (and deprecate old ones) to support multiple GSN<br><br>Move static global pdp storage arrays to be per GSN. This way now<br>several GSN per process are supported without collisions.<br><br>* pdp_init() is defined in public API but it's actually only intended<br>for use (and currently only used) internally in gtp_new(). So let's<br>document that and re-use it for backward compatibility with now<br>deprecated API, where only one GSN per process is supported.<br><br>* Back pointer to gsn_t (pdp->gsn) moved from gtp.c:gtp_new() to<br>gtp_pdp_newpdp(), since it makes more sense to have it there. This way<br>backpointer is always set, even in case were app calls pdp_newpdp() API<br>directly instead of creating them through gtp.c, like osmo-sgsn does.<br><br>* Create new versions of required APIs with a pointer to gsn_t where the<br>pdp ctx is to be created/found. Some APIs receiving a pointer to a pdp<br>ctx can be left intact because we have a backpointer to its gsn_t.<br><br>* pdp_getpdp() is nowhere used, and makes little sense now that we have<br>pdpa reachable in gsn->pdpa, so let's deprecate it without adding a<br>replacement.<br><br>* Deprecate gtp.h gtp_newpdp(), since it's nowhere used and useless<br>(does same as new gtp_pdp_newpdp() and doesn't allow for old_pdp to be<br>passed as parameter).<br><br>Fixes: OS#2873<br>Change-Id: I653cbdc185165592d985e3efab6e3f1add97877b<br>---<br>M TODO-RELEASE<br>M gtp/gtp.c<br>M gtp/gtp.h<br>M gtp/pdp.c<br>M gtp/pdp.h<br>5 files changed, 90 insertions(+), 37 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/96/14296/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/14296">change 14296</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/14296"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ggsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I653cbdc185165592d985e3efab6e3f1add97877b </div>
<div style="display:none"> Gerrit-Change-Number: 14296 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>