sgsn: Make ra_id_equals available as gprs_ra_id_equals

The function is moved to gprs_utils.c, renamed, and made non-static
to be usable in other modules, too.

Sponsored-by: On-Waves ehf
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index c4dc9d7..8f8bdc6 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -90,13 +90,6 @@
 	.class_id = OSMO_STATS_CLASS_SUBSCRIBER,
 };
 
-static int ra_id_equals(const struct gprs_ra_id *id1,
-			const struct gprs_ra_id *id2)
-{
-	return (id1->mcc == id2->mcc && id1->mnc == id2->mnc &&
-		id1->lac == id2->lac && id1->rac == id2->rac);
-}
-
 /* See 03.02 Chapter 2.6 */
 static inline uint32_t tlli_foreign(uint32_t tlli)
 {
@@ -112,7 +105,7 @@
 
 	llist_for_each_entry(ctx, &sgsn_mm_ctxts, list) {
 		if (tlli == ctx->tlli &&
-		    ra_id_equals(raid, &ctx->ra))
+		    gprs_ra_id_equals(raid, &ctx->ra))
 			return ctx;
 	}
 
@@ -130,7 +123,7 @@
 	case TLLI_FOREIGN:
 		llist_for_each_entry(ctx, &sgsn_mm_ctxts, list) {
 			if (tlli == tlli_foreign(ctx->tlli) &&
-			    ra_id_equals(raid, &ctx->ra))
+			    gprs_ra_id_equals(raid, &ctx->ra))
 				return ctx;
 		}
 		break;