PASAHO Egress Flow Operation Command Macros
PA/SA/Host Macros

PASAHO Egress Flow Operation Command Macros

Macros used by the PASAHO Egress Flow Operation Command

#define PASAHO_EF_OP_SET_CTRL(x, v)   PASAHO_SET_BITFIELD((x)->word0,(v), 8, 16)
#define PASAHO_EF_OP_SET_CTRL_FC(x, v)   PASAHO_SET_BITFIELD((x)->word0,(v), 23, 1)
#define PASAHO_EF_OP_SET_CTRL_LVL4(x, v)   PASAHO_SET_BITFIELD((x)->word0,(v), 15, 1)
#define PASAHO_EF_OP_SET_CTRL_LVL3(x, v)   PASAHO_SET_BITFIELD((x)->word0,(v), 14, 1)
#define PASAHO_EF_OP_SET_CTRL_LVL2(x, v)   PASAHO_SET_BITFIELD((x)->word0,(v), 13, 1)
#define PASAHO_EF_OP_SET_CTRL_LVL1(x, v)   PASAHO_SET_BITFIELD((x)->word0,(v), 12, 1)
#define PASAHO_EF_OP_SET_L2_OFFSET(x, v)   PASAHO_SET_BITFIELD((x)->word1,(v),8,8)
#define PASAHO_EF_OP_SET_L3_OFFSET2(x, v)   PASAHO_SET_BITFIELD((x)->word1,(v),0,8)
#define PASAHO_EF_OP_SET_L3_OFFSET(x, v)   PASAHO_SET_BITFIELD((x)->word2,(v),24,8)
#define PASAHO_EF_OP_SET_IPSEC_OFFSET(x, v)   PASAHO_SET_BITFIELD((x)->word2,(v),0, 8)
#define PASAHO_EF_OP_SET_END_OFFSET(x, v)   PASAHO_SET_BITFIELD((x)->word1,(v),16,16)
#define PASAHO_EF_OP_SET_LVL1_REC(x, v)   PASAHO_SET_BITFIELD((x)->word3,(v),24, 8)
#define PASAHO_EF_OP_SET_LVL2_REC(x, v)   PASAHO_SET_BITFIELD((x)->word3,(v),16, 8)
#define PASAHO_EF_OP_SET_LVL3_REC(x, v)   PASAHO_SET_BITFIELD((x)->word3,(v), 8, 8)
#define PASAHO_EF_OP_SET_LVL4_REC(x, v)   PASAHO_SET_BITFIELD((x)->word3,(v), 0, 8)

Define Documentation

#define PASAHO_EF_OP_SET_CTRL (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0,(v), 8, 16)

Sets the control flags of the Flow Cache operation command

#define PASAHO_EF_OP_SET_CTRL_FC (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0,(v), 23, 1)

Enable/Disable Flow Cache lookup

#define PASAHO_EF_OP_SET_CTRL_LVL1 (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0,(v), 12, 1)

Enable/Disable Level 1 Egress Flow record

#define PASAHO_EF_OP_SET_CTRL_LVL2 (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0,(v), 13, 1)

Enable/Disable Level 2 Egress Flow record

#define PASAHO_EF_OP_SET_CTRL_LVL3 (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0,(v), 14, 1)

Enable/Disable Level 3 Egress Flow record

#define PASAHO_EF_OP_SET_CTRL_LVL4 (   x,
 
)    PASAHO_SET_BITFIELD((x)->word0,(v), 15, 1)

Enable/Disable Level 4 Egress Flow record

#define PASAHO_EF_OP_SET_END_OFFSET (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1,(v),16,16)

Set the end offset as end of L4 (UDP/UDPLite/TCP) payload

#define PASAHO_EF_OP_SET_IPSEC_OFFSET (   x,
 
)    PASAHO_SET_BITFIELD((x)->word2,(v),0, 8)

Set the IPSEC offset if the IPSEC header exists in the packet

#define PASAHO_EF_OP_SET_L2_OFFSET (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1,(v),8,8)

Set the l2 offset

#define PASAHO_EF_OP_SET_L3_OFFSET (   x,
 
)    PASAHO_SET_BITFIELD((x)->word2,(v),24,8)

Set the l3 offset for outer or fisrt IP

#define PASAHO_EF_OP_SET_L3_OFFSET2 (   x,
 
)    PASAHO_SET_BITFIELD((x)->word1,(v),0,8)

Set the l3 offset for inner or fisrt IP

#define PASAHO_EF_OP_SET_LVL1_REC (   x,
 
)    PASAHO_SET_BITFIELD((x)->word3,(v),24, 8)

Set the index of Egress Flow level 1 record

#define PASAHO_EF_OP_SET_LVL2_REC (   x,
 
)    PASAHO_SET_BITFIELD((x)->word3,(v),16, 8)

Set the index of Egress Flow level 2 record

#define PASAHO_EF_OP_SET_LVL3_REC (   x,
 
)    PASAHO_SET_BITFIELD((x)->word3,(v), 8, 8)

Set the index of Egress Flow level 3 record

#define PASAHO_EF_OP_SET_LVL4_REC (   x,
 
)    PASAHO_SET_BITFIELD((x)->word3,(v), 0, 8)

Set the index of Egress Flow level 4 record


Copyright 2014, Texas Instruments Incorporated