mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 05:25:56 +00:00 
			
		
		
		
	 7cdb1a8445
			
		
	
	
		7cdb1a8445
		
	
	
	
	
		
			
			Reduce or eliminate use of global zebra_ns structs in a couple of netlink/kernel code paths, so that those paths can potentially be made asynch eventually. Slide netlink_talk_info into place to remove dependency on core zebra structs; add accessors for dplane context block Start init of route context from zebra core re and rn structs; start queueing and event handling for incoming route updates. Expose netlink apis that don't rely on zebra core structs; add parallel route-update code path using the dplane ctx; simplest possible event loop to process queued route' updates. Signed-off-by: Mark Stapp <mjs@voltanet.io>
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* zebra memory type declarations
 | |
|  *
 | |
|  * Copyright (C) 2015  David Lamparter
 | |
|  *
 | |
|  * This file is part of Quagga.
 | |
|  *
 | |
|  * Quagga is free software; you can redistribute it and/or modify it
 | |
|  * under the terms of the GNU General Public License as published by the
 | |
|  * Free Software Foundation; either version 2, or (at your option) any
 | |
|  * later version.
 | |
|  *
 | |
|  * Quagga is distributed in the hope that it will be useful, but
 | |
|  * WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | |
|  * General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU General Public License along
 | |
|  * with this program; see the file COPYING; if not, write to the Free Software
 | |
|  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 | |
|  */
 | |
| 
 | |
| #ifndef _QUAGGA_ZEBRA_MEMORY_H
 | |
| #define _QUAGGA_ZEBRA_MEMORY_H
 | |
| 
 | |
| #include "memory.h"
 | |
| 
 | |
| DECLARE_MGROUP(ZEBRA)
 | |
| DECLARE_MTYPE(RTADV_PREFIX)
 | |
| DECLARE_MTYPE(ZEBRA_NS)
 | |
| DECLARE_MTYPE(ZEBRA_VRF)
 | |
| DECLARE_MTYPE(RE)
 | |
| DECLARE_MTYPE(RIB_QUEUE)
 | |
| DECLARE_MTYPE(STATIC_ROUTE)
 | |
| DECLARE_MTYPE(RIB_DEST)
 | |
| DECLARE_MTYPE(RIB_TABLE_INFO)
 | |
| DECLARE_MTYPE(RNH)
 | |
| DECLARE_MTYPE(DP_CTX)
 | |
| 
 | |
| #endif /* _QUAGGA_ZEBRA_MEMORY_H */
 |