mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 02:56:50 +07:00
22bbf5f3e4
It's better when function pointer arrays aren't modifiable. Net change: $ size net/llc/built-in.o.* text data bss dec hex filename 61193 12758 1344 75295 1261f net/llc/built-in.o.new 47113 27030 1344 75487 126df net/llc/built-in.o.old Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
33 lines
947 B
C
33 lines
947 B
C
#ifndef LLC_S_ST_H
|
|
#define LLC_S_ST_H
|
|
/*
|
|
* Copyright (c) 1997 by Procom Technology,Inc.
|
|
* 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
|
|
*
|
|
* This program can be redistributed or modified under the terms of the
|
|
* GNU General Public License as published by the Free Software Foundation.
|
|
* This program is distributed without any warranty or implied warranty
|
|
* of merchantability or fitness for a particular purpose.
|
|
*
|
|
* See the GNU General Public License for more details.
|
|
*/
|
|
|
|
#define LLC_NR_SAP_STATES 2 /* size of state table */
|
|
|
|
/* structures and types */
|
|
/* SAP state table structure */
|
|
struct llc_sap_state_trans {
|
|
llc_sap_ev_t ev;
|
|
u8 next_state;
|
|
const llc_sap_action_t *ev_actions;
|
|
};
|
|
|
|
struct llc_sap_state {
|
|
u8 curr_state;
|
|
struct llc_sap_state_trans **transitions;
|
|
};
|
|
|
|
/* only access to SAP state table */
|
|
extern struct llc_sap_state llc_sap_state_table[LLC_NR_SAP_STATES];
|
|
#endif /* LLC_S_ST_H */
|