patch-2.3.48 linux/include/net/atmclip.h

Next file: linux/include/net/tcp.h
Previous file: linux/include/linux/wait.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/net/atmclip.h linux/include/net/atmclip.h
@@ -1,6 +1,6 @@
 /* net/atm/atmarp.h - RFC1577 ATM ARP */
  
-/* Written 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
+/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
  
  
 #ifndef _ATMCLIP_H
@@ -11,6 +11,7 @@
 #include <linux/atm.h>
 #include <linux/atmdev.h>
 #include <linux/atmarp.h>
+#include <linux/spinlock.h>
 #include <net/neighbour.h>
 
 
@@ -22,6 +23,7 @@
 	struct atm_vcc	*vcc;		/* VCC descriptor */
 	struct atmarp_entry *entry;	/* ATMARP table entry, NULL if IP addr.
 					   isn't known yet */
+	int		xoff;		/* 1 if send buffer is full */
 	unsigned char	encap;		/* 0: NULL, 1: LLC/SNAP */
 	unsigned long	last_use;	/* last send or receive operation */
 	unsigned long	idle_timeout;	/* keep open idle for so many jiffies*/
@@ -48,8 +50,9 @@
 struct clip_priv {
 	char name[8];			/* interface name */
 	int number;			/* for convenience ... */
+	spinlock_t xoff_lock;		/* ensures that pop is atomic (SMP) */
 	struct net_device_stats stats;
-	struct net_device *next;		/* next CLIP interface */
+	struct net_device *next;	/* next CLIP interface */
 };
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)