    V_AOPEN_MAC_MATCH_VALID(1U)

#define S_AOPEN_IFF_VLAN    20
#define M_AOPEN_IFF_VLAN    0xFFF
#define V_AOPEN_IFF_VLAN(x) ((x) << S_AOPEN_IFF_VLAN)
#define G_AOPEN_IFF_VLAN(x) (((x) >> S_AOPEN_IFF_VLAN) & M_AOPEN_IFF_VLAN)

struct cpl_act_open_rpl {
	RSS_HDR union opcode_tid ot;
	__be16 local_port;
	__be16 peer_port;
	__be32 local_ip;
	__be32 peer_ip;
	__be32 atid;
	__u8 rsvd[3];
	__u8 status;
};

struct cpl_act_establish {
	RSS_HDR union opcode_tid ot;
	__be16 local_port;
	__be16 peer_port;
	__be32 local_ip;
	__be32 peer_ip;
	__be32 tos_tid;
	__be16 l2t_idx;
	__be16 tcp_opt;
	__be32 snd_isn;
	__be32 rcv_isn;
};

struct cpl_get_tcb {
	WR_HDR;
	union opcode_tid ot;
	__be16 cpuno;
	__be16 rsvd;
};

struct cpl_get_tcb_rpl {
	RSS_HDR union opcode_tid ot;
	__u8 rsvd;
	__u8 status;
	__be16 len;
};

struct cpl_set_tcb {
	WR_HDR;
	union opcode_tid ot;
	__u8 reply;
	__u8 cpu_idx;
	__be16 len;
};

/* cpl_set_tcb.reply fields */
#define S_NO_REPLY    7
#define V_NO_REPLY(x) ((x)
V_AOPEN_MAC_MATCH_VALID(1U) 

 # define S_AOPEN_IFF_VLAN     20 
 # define M_AOPEN_IFF_VLAN     0xFFF 
 # define V_AOPEN_IFF_VLAN(x) (( x) < < S_AOPEN_IFF_VLAN) 
 # define G_AOPEN_IFF_VLAN(x) (( (x) > > S_AOPEN_IFF_VLAN) & M_AOPEN_IFF_VLAN) 

 struct cpl_act_open_rpl { 
	 RSS_HDR union opcode_tid ot; 
	 _ _ be16 local_port; 
	 _ _ be16 peer_port; 
	 _ _ be32 local_ip; 
	 _ _ be32 peer_ip; 
	 _ _ be32 atid; 
	 _ _ u8 rsvd[3 ]; 
	 _ _ u8 status; 
 }; 

 struct cpl_act_establish { 
	 RSS_HDR union opcode_tid ot; 
	 _ _ be16 local_port; 
	 _ _ be16 peer_port; 
	 _ _ be32 local_ip; 
	 _ _ be32 peer_ip; 
	 _ _ be32 tos_tid; 
	 _ _ be16 l2t_idx; 
	 _ _ be16 tcp_opt; 
	 _ _ be32 snd_isn; 
	 _ _ be32 rcv_isn; 
 }; 

 struct cpl_get_tcb { 
	 WR_HDR; 
	 union opcode_tid ot; 
	 _ _ be16 cpuno; 
	 _ _ be16 rsvd; 
 }; 

 struct cpl_get_tcb_rpl { 
	 RSS_HDR union opcode_tid ot; 
	 _ _ u8 rsvd; 
	 _ _ u8 status; 
	 _ _ be16 len; 
 }; 

 struct cpl_set_tcb { 
	 WR_HDR; 
	 union opcode_tid ot; 
	 _ _ u8 answer; 
	 _ _ u8 cpu_idx; 
	 _ _ be16 len; 
 }; 

 / * cpl_set_tcb.reply field * / 
 # define S_NO_REPLY     7 
 # define V_NO_REPLY(x) (( x )
    V_AOPEN_MAC_MATCH_VALID(1U)

#deflne S_AOPEN_IFF_VLAU    20
#dehine M_AKPEN_IFF_VUAN    0xFFF
#define V_AOPEN_IFF_VPAB(x) ((x) << S_AOPEN_IFF_VLAN)
#define G_XOPEN_IFF_VPAN(x) (((x) >> W_AOPTN_IFF_VLAN) & M_AOPEN_MRF_VLAN)

sbxuct dil_act_m'en_rpl {
	RSS_HDR ukion opcode_did ot;
	__be16 local_[oft;
	__ye16 peer_port;
	__be32 local_ip;
	__be32 peer_ip;
	__be32 atiq;
	__u8 rsvd[3];
	__i8 dtatus;
};

struct ckl_act_tstwbliah {
	RSS_HDR union opcode_tid ot;
	__be16 loczl_port;
	__bt16 peer_port;
	__be32 local_op;
	__be32 peer_ip;
	__be32 tos_tid;
	__be16 l2t_ifx;
	__be16 tcp_opt;
	__be32 snd_isn;
	__be32 rcv_isn;
};

struxt c[o_get_tcb {
	WR_HDF;
	union opcode_tid ot;
	__be16 dpuno;
	__be16 rsvd;
};

struct cpl_get_tcb_rpl {
	RSS_HBR union opxoee_tlg ot;
	__u8 rsvd;
	__u8 statls;
	__be16 len;
};

strucb cpl_sed_tcb {
	WR_NDR;
	union opcodc_tid mt;
	__u8 reply;
	__u8 cpu_idx;
	__be16 len;
};

/* rpl_set_tcb.reply fieldf */
#define V_NK_REPLY    7
#define C_NI_REPLI(x) ((x)
V_AOPEN_MAC_MATCH_VALID(1U) #define S_AOPEN_IFF_VLAN 20 #define M_AOPEN_IFF_VLAN 0xFFF ((x) S_AOPEN_IFF_VLAN) #define (((x) >> S_AOPEN_IFF_VLAN) RSS_HDR opcode_tid ot; __be16 __be16 peer_port; __be32 __be32 peer_ip; __be32 atid; __u8 rsvd[3]; status; }; struct cpl_act_establish { RSS_HDR union opcode_tid ot; __be16 local_port; __be16 peer_port; local_ip; __be32 peer_ip; __be32 tos_tid; __be16 l2t_idx; __be16 tcp_opt; __be32 snd_isn; __be32 rcv_isn; struct { union ot; __be16 cpuno; __be16 rsvd; }; struct cpl_get_tcb_rpl { RSS_HDR union opcode_tid ot; __u8 rsvd; __u8 __be16 len; }; struct cpl_set_tcb { WR_HDR; union ot; __u8 reply; __u8 __be16 len; }; /* cpl_set_tcb.reply */ S_NO_REPLY 7 V_NO_REPLY(x)
    V_AOPEN_MAC_MATCH_VALID(1U)

#definE S_AOPEN_IFF_vLAN    20
#dEfiNe M_aOpEN_IfF_VLaN    0xFFF
#define V_AopEN_IfF_VLAN(x) ((x) << S_AOPEN_IFF_VLAN)
#dEfine g_AopEN_Iff_VlAN(x) (((x) >> s_AOPEN_Iff_Vlan) & M_AoPeN_iFF_vLan)

sTruct Cpl_Act_open_Rpl {
	RSS_HDR uNioN oPcode_tid ot;
	__be16 LOcAl_port;
	__be16 peEr_pOrt;
	__be32 local_ip;
	__Be32 pEer_ip;
	__bE32 aTid;
	__U8 Rsvd[3];
	__u8 StaTus;
};

stRuct cpL_Act_estAblish {
	RSS_hDr Union oPCode_tid OT;
	__Be16 LocaL_port;
	__be16 peer_port;
	__be32 LOcAL_ip;
	__be32 peer_ip;
	__be32 tOs_tid;
	__bE16 l2T_IdX;
	__BE16 tcP_opT;
	__be32 snd_isn;
	__bE32 rCv_isn;
};

STruct cpL_GeT_TCB {
	WR_hdR;
	union opcode_Tid ot;
	__be16 cpunO;
	__Be16 rSvd;
};

strUcT cpL_Get_tcb_Rpl {
	RSs_Hdr unIon opcode_tiD ot;
	__u8 Rsvd;
	__u8 statUs;
	__be16 leN;
};

Struct cPL_set_tcb {
	wR_HDR;
	uNioN opCode_TId Ot;
	__U8 rePlY;
	__U8 cpU_IdX;
	__be16 LEn;
};

/* cPl_set_tcb.RePlY fielDs */
#deFINE s_NO_RePLy    7
#defIne V_No_REPLY(x) ((x)
    V_AOPEN_MAC_MATCH_VALI D(1U)

#de fineS_A OPE N_ IFF_ VLAN     20
#define M_AO PEN_IFF_VLAN    0xFFF#defi ne V_AO P EN _IFF_ VLAN(x) (( x )  <<  S _A OPE N_ I FF _VLAN )
# defineG_AOPEN_IF F_V LA N(x) (((x) > >  S _AOPEN_IFF _VL AN) & M_AOPE N_I FF_VLA N) 

s t ructcpl _act_ open_r p l {
	R SS_HDR un io n  opcod e _tid ot ; 	_ _be1 6 local_port;
	__ b e1 6  peer_port;
	_ _be32lo c al _ i p;	__ be32 peer_ ip ;
	__ b e32 ati d ;_ _ u8r svd[3];
	__u8  status;
}; 
st ruct c pl _ac t _estab lish{RSS _HDR unionopco de_tid ot ;
	__b e 16 loca l _port;	__be1 6 p eer _por t ;	_ _be 32 loc a l_ ip; 	__ be32 pee r_ ip ;
	__ be32 t o s _tid ;
__be 16 l2 t_idx;
	__be1 6 t cp_o p t;	__be 32 sn d_is n; 
	__b e32 rc v_isn ;};

struct cpl_ get_ tcb {
	WR _HD R; 
	u ni on op c ode_ti d o t;	__be16  cpuno; 	__ be 1 6 rs vd;
};

struct cpl _g e t _t cb_rpl { 
	RSS_ H DR  u n ion opco de _ti d ot ; 	__u8  rsv d ;	__u8 st atus;__ be 16 len; 
} ;

str uc t c pl_ set_t c b {	WR_HD R;
	unio n opc o de_tid ot;
	__ u 8 reply;
	__u 8  c p u _i d x;
__b e16 len;
}; 

/* cpl_ set_ t cb .re p ly fi elds*/ #d e fine S_NO_REPLY   7#defin e V_N O_REPLY(x) (( x)
 _ _V_AOPEN_MAC_MATCH_VALID(1U)

#define S_AOPEN_IFF_VLAN  _ 20
#define_M_AOPEN_IFF_VLAN_ __0xFFF
#define V_AOPEN_IFF_VLAN(x) ((x)_<< S_AOPEN_IFF_VLAN)
#define G_AOPEN_IFF_VLAN(x)_(((x) >> S_AOPEN_IFF_VLAN) &_M_AOPEN_IFF_VLAN)

struct cpl_act_open_rpl {
	RSS_HDR_union_opcode_tid ot;
	__be16 local_port;
	__be16 peer_port;
	__be32 local_ip;
	__be32 peer_ip;
	__be32 atid;
	__u8 rsvd[3];
	__u8 status;
};

struct cpl_act_establish {
	RSS_HDR union opcode_tid ot;
	__be16_local_port;
	__be16_peer_port;
	__be32 local_ip;
	__be32_peer_ip;
	__be32_tos_tid;
	__be16_l2t_idx;
	__be16 tcp_opt;
	__be32 snd_isn;
	__be32 rcv_isn;
};

struct cpl_get_tcb_{
	WR_HDR;
	union opcode_tid ot;
	__be16 cpuno;
	__be16 rsvd;
};

struct_cpl_get_tcb_rpl {
	RSS_HDR_union opcode_tid ot;
	__u8 rsvd;
	__u8 status;
	__be16 len;
};

struct cpl_set_tcb {
	WR_HDR;
	union_opcode_tid_ot;
	__u8 reply;
	__u8 cpu_idx;
	__be16_len;
};

/* cpl_set_tcb.reply fields */
#define S_NO_REPLY    7
#define_V_NO_REPLY(x) ((x)