~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/atm/mpc.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _MPC_H_
  3 #define _MPC_H_
  4 
  5 #include <linux/types.h>
  6 #include <linux/atm.h>
  7 #include <linux/atmmpc.h>
  8 #include <linux/skbuff.h>
  9 #include <linux/spinlock.h>
 10 #include "mpoa_caches.h"
 11 
 12 /* kernel -> mpc-daemon */
 13 int msg_to_mpoad(struct k_message *msg, struct mpoa_client *mpc);
 14 
 15 struct mpoa_client {
 16         struct mpoa_client *next;
 17         struct net_device *dev;      /* lec in question                     */
 18         int dev_num;                 /* e.g. 2 for lec2                     */
 19 
 20         struct atm_vcc *mpoad_vcc;   /* control channel to mpoad            */
 21         uint8_t mps_ctrl_addr[ATM_ESA_LEN];  /* MPS control ATM address     */
 22         uint8_t our_ctrl_addr[ATM_ESA_LEN];  /* MPC's control ATM address   */
 23 
 24         rwlock_t ingress_lock;
 25         const struct in_cache_ops *in_ops; /* ingress cache operations      */
 26         in_cache_entry *in_cache;    /* the ingress cache of this MPC       */
 27 
 28         rwlock_t egress_lock;
 29         const struct eg_cache_ops *eg_ops; /* egress cache operations       */
 30         eg_cache_entry *eg_cache;    /* the egress  cache of this MPC       */
 31 
 32         uint8_t *mps_macs;           /* array of MPS MAC addresses, >=1     */
 33         int number_of_mps_macs;      /* number of the above MAC addresses   */
 34         struct mpc_parameters parameters;  /* parameters for this client    */
 35 
 36         const struct net_device_ops *old_ops;
 37         struct net_device_ops new_ops;
 38 };
 39 
 40 
 41 struct atm_mpoa_qos {
 42         struct atm_mpoa_qos *next;
 43         __be32 ipaddr;
 44         struct atm_qos qos;
 45 };
 46 
 47 
 48 /* MPOA QoS operations */
 49 struct atm_mpoa_qos *atm_mpoa_add_qos(__be32 dst_ip, struct atm_qos *qos);
 50 struct atm_mpoa_qos *atm_mpoa_search_qos(__be32 dst_ip);
 51 int atm_mpoa_delete_qos(struct atm_mpoa_qos *qos);
 52 
 53 /* Display QoS entries. This is for the procfs */
 54 struct seq_file;
 55 void atm_mpoa_disp_qos(struct seq_file *m);
 56 
 57 #ifdef CONFIG_PROC_FS
 58 int mpc_proc_init(void);
 59 void mpc_proc_clean(void);
 60 #else
 61 #define mpc_proc_init() (0)
 62 #define mpc_proc_clean() do { } while(0)
 63 #endif
 64 
 65 #endif /* _MPC_H_ */
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php