/* // Copyright (c) 2017 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. */ /** * @file * L3fwd common header file for LPM IPv4 and IPv6 stack initialization */ #ifndef L3FWD_COMMON_H #define L3FWD_COMMON_H /* Standard Libraries */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* DPDK RTE Libraries */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /** * Define the Macros */ #define MAX_ROUTES 4 /**< MAX route that can be added*/ #define L3FWD_DEBUG 1 /**< if set, enables the fast path logs */ #define MULTIPATH_FEAT 1 /**< if set, enables the ECMP Multicast feature */ //#define IPPROTO_ICMPV6 58 /**< Protocol ID for ICMPv6 */ /** * L3fwd initilazation for creating IPv4 and IPv6 LPM table. */ void l3fwd_init(void); /** * L3fwd IPv4 LPM table population, it calls IPv4 route add function which stores all the route in LPM table */ void populate_lpm4_table_routes(void); /** * L3fwd IPv6 LPM table population, it calls IPv6 route add function which stores all the route in LPM6 table */ void populate_lpm6_table_routes(void); /** * L3fwd LPM table population for both IPv4 and IPv6. */ void populate_lpm_routes(void); #endif