Re: pipex(4): remove unused `pipex_iface_context' struct

2021-01-03 Thread Klemens Nanni
OK kn



pipex(4): remove unused `pipex_iface_context' struct

2021-01-03 Thread Vitaliy Makkoveev
Index: sys/net/pipex.h
===
RCS file: /cvs/src/sys/net/pipex.h,v
retrieving revision 1.29
diff -u -p -r1.29 pipex.h
--- sys/net/pipex.h 2 Jan 2021 13:15:15 -   1.29
+++ sys/net/pipex.h 3 Jan 2021 20:10:47 -
@@ -177,22 +177,8 @@ extern int pipex_enable;
 
 struct pipex_session;
 
-/* pipex context for a interface
- *
- * Locks used to protect struct members:
- *  I   immutable after creation
- *  N   net lock
- */
-struct pipex_iface_context {
-   u_int   ifindex;/* [I] outer interface index */
-   u_int   pipexmode;  /* [N] pipex mode */
-   /* [I] virtual pipex_session entry for multicast routing */
-   struct pipex_session *multicast_session;
-};
-
 __BEGIN_DECLS
 void  pipex_init (void);
-void  pipex_iface_fini (struct pipex_iface_context *);
 
 struct pipex_session  *pipex_pppoe_lookup_session (struct mbuf *);
 struct mbuf   *pipex_pppoe_input (struct mbuf *, struct pipex_session 
*);
Index: sys/net/pipex_local.h
===
RCS file: /cvs/src/sys/net/pipex_local.h,v
retrieving revision 1.40
diff -u -p -r1.40 pipex_local.h
--- sys/net/pipex_local.h   27 Aug 2020 10:47:52 -  1.40
+++ sys/net/pipex_local.h   3 Jan 2021 20:10:47 -
@@ -384,8 +384,6 @@ void  pipex_rele_session
 int   pipex_link_session(struct pipex_session *,
   struct ifnet *, void *);
 void  pipex_unlink_session(struct pipex_session *);
-int   pipex_close_session (struct pipex_session_close_req *,
-  struct pipex_iface_context *);
 int   pipex_config_session (struct pipex_session_config_req *,
   void *);
 int   pipex_get_stat (struct pipex_session_stat_req *,