1/* 2 * Copyright (c) 2014, The Linux Foundation. All rights reserved. 3 * Permission to use, copy, modify, and/or distribute this software for 4 * any purpose with or without fee is hereby granted, provided that the 5 * above copyright notice and this permission notice appear in all copies. 6 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 7 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 8 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 9 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 10 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 11 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 12 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13 */ 14 15 16#ifndef _DESS_FDB_PRV_H_ 17#define _DESS_FDB_PRV_H_ 18 19#ifdef __cplusplus 20extern "C" { 21#endif /* __cplusplus */ 22 23 24#define ARL_FLUSH_ALL 1 25#define ARL_LOAD_ENTRY 2 26#define ARL_PURGE_ENTRY 3 27#define ARL_FLUSH_ALL_UNLOCK 4 28#define ARL_FLUSH_PORT_UNICAST 5 29#define ARL_NEXT_ENTRY 6 30#define ARL_FIND_ENTRY 7 31#define ARL_TRANSFER_ENTRY 8 32 33#define ARL_FIRST_ENTRY 1001 34#define ARL_FLUSH_PORT_NO_STATIC 1002 35#define ARL_FLUSH_PORT_AND_STATIC 1003 36 37#define DESS_MAX_FID 4095 38#define DESS_MAX_LEARN_LIMIT_CNT 2048 39#define DESS_MAX_PORT_LEARN_LIMIT_CNT 1024 40 41 sw_error_t 42 inter_dess_fdb_flush(a_uint32_t dev_id, a_uint32_t flag); 43 44 45#ifdef __cplusplus 46} 47#endif /* __cplusplus */ 48#endif /* _DESS_FDB_PRV_H_ */ 49 50