FreeBSD/sys/dev/bxe/bxe.c
/**
 * bxe_is_contextless_ramrod - check if the current command ends on EQ
 *
 * @cmd:      command to check
 * @cmd_type: command type
 */
check if the current command ends on EQ
@cmd:      command to check
@cmd_type: command type
check if the current command ends on EQ @cmd : command to check @cmd_type : command type
static inline
int bxe_is_contextless_ramrod(int cmd,
                              int cmd_type)
{
    if ((cmd_type == NONE_CONNECTION_TYPE) ||
        (cmd == RAMROD_CMD_ID_ETH_FORWARD_SETUP) ||
        (cmd == RAMROD_CMD_ID_ETH_CLASSIFICATION_RULES) ||
        (cmd == RAMROD_CMD_ID_ETH_FILTER_RULES) ||
        (cmd == RAMROD_CMD_ID_ETH_MULTICAST_RULES) ||
        (cmd == RAMROD_CMD_ID_ETH_SET_MAC) ||
        (cmd == RAMROD_CMD_ID_ETH_RSS_UPDATE)) {
        return (TRUE);
    } else {
        return (FALSE);
    }
}
static inline int bxe_is_contextless_ramrod ( int cmd , int cmd_type ) { if ( ( cmd_type == NONE_CONNECTION_TYPE ) || ( cmd == RAMROD_CMD_ID_ETH_FORWARD_SETUP ) || ( cmd == RAMROD_CMD_ID_ETH_CLASSIFICATION_RULES ) || ( cmd == RAMROD_CMD_ID_ETH_FILTER_RULES ) || ( cmd == RAMROD_CMD_ID_ETH_MULTICAST_RULES ) || ( cmd == RAMROD_CMD_ID_ETH_SET_MAC ) || ( cmd == RAMROD_CMD_ID_ETH_RSS_UPDATE ) ) { return ( TRUE ) ; } else { return ( FALSE ) ; } }
bxe_is_contextless_ramrod - check if the current command ends on EQ
 @cmd:      command to check
 @cmd_type: command type
bxe_is_contextless_ramrod - check if the current command ends on EQ @cmd : command to check @cmd_type : command type