src/dpdk/drivers/net/cxgbe/cxgbe_filter.c
static void t4_mk_filtdelwr(struct adapter *adap, unsigned int ftid,
			    struct fw_filter2_wr *wr, int qid)
{
	memset(wr, 0, sizeof(*wr));
	if (adap->params.filter2_wr_support)
		wr->op_pkd = cpu_to_be32(V_FW_WR_OP(FW_FILTER2_WR));
	else
		wr->op_pkd = cpu_to_be32(V_FW_WR_OP(FW_FILTER_WR));
	wr->len16_pkd = cpu_to_be32(V_FW_WR_LEN16(sizeof(*wr) / 16));
	wr->tid_to_iq = cpu_to_be32(V_FW_FILTER_WR_TID(ftid) |
				    V_FW_FILTER_WR_NOREPLY(qid < 0));
	wr->del_filter_to_l2tix = cpu_to_be32(F_FW_FILTER_WR_DEL_FILTER);
	if (qid >= 0)
		wr->rx_chan_rx_rpl_iq =
				cpu_to_be16(V_FW_FILTER_WR_RX_RPL_IQ(qid));
}
/**
 * t4_mk_filtdelwr - create a delete filter WR
 * @adap: adapter context
 * @ftid: the filter ID
 * @wr: the filter work request to populate
 * @qid: ingress queue to receive the delete notification
 *
 * Creates a filter work request to delete the supplied filter.  If @qid is
 * negative the delete notification is suppressed.
 */
create a delete filter WR
@adap: adapter context
@ftid: the filter ID
@wr: the filter work request to populate
@qid: ingress queue to receive the delete notification

Creates a filter work request to delete the supplied filter.  If @qid is
negative the delete notification is suppressed.
create a delete filter WR @adap : adapter context @ftid : the filter ID @wr : the filter work request to populate @qid : ingress queue to receive the delete notification Creates a filter work request to delete the supplied filter . If @qid is negative the delete notification is suppressed .
static void t4_mk_filtdelwr(struct adapter *adap, unsigned int ftid,
			    struct fw_filter2_wr *wr, int qid)
{
	memset(wr, 0, sizeof(*wr));
	if (adap->params.filter2_wr_support)
		wr->op_pkd = cpu_to_be32(V_FW_WR_OP(FW_FILTER2_WR));
	else
		wr->op_pkd = cpu_to_be32(V_FW_WR_OP(FW_FILTER_WR));
	wr->len16_pkd = cpu_to_be32(V_FW_WR_LEN16(sizeof(*wr) / 16));
	wr->tid_to_iq = cpu_to_be32(V_FW_FILTER_WR_TID(ftid) |
				    V_FW_FILTER_WR_NOREPLY(qid < 0));
	wr->del_filter_to_l2tix = cpu_to_be32(F_FW_FILTER_WR_DEL_FILTER);
	if (qid >= 0)
		wr->rx_chan_rx_rpl_iq =
				cpu_to_be16(V_FW_FILTER_WR_RX_RPL_IQ(qid));
}
static void t4_mk_filtdelwr ( struct adapter * adap , unsigned int ftid , struct fw_filter2_wr * wr , int qid ) { memset ( wr , 0 , sizeof ( * wr ) ) ; if ( adap -> params . filter2_wr_support ) wr -> op_pkd = cpu_to_be32 ( V_FW_WR_OP ( FW_FILTER2_WR ) ) ; else wr -> op_pkd = cpu_to_be32 ( V_FW_WR_OP ( FW_FILTER_WR ) ) ; wr -> len16_pkd = cpu_to_be32 ( V_FW_WR_LEN16 ( sizeof ( * wr ) / 16 ) ) ; wr -> tid_to_iq = cpu_to_be32 ( V_FW_FILTER_WR_TID ( ftid ) | V_FW_FILTER_WR_NOREPLY ( qid < 0 ) ) ; wr -> del_filter_to_l2tix = cpu_to_be32 ( F_FW_FILTER_WR_DEL_FILTER ) ; if ( qid >= 0 ) wr -> rx_chan_rx_rpl_iq = cpu_to_be16 ( V_FW_FILTER_WR_RX_RPL_IQ ( qid ) ) ; }
t4_mk_filtdelwr - create a delete filter WR
 @adap: adapter context
 @ftid: the filter ID
 @wr: the filter work request to populate
 @qid: ingress queue to receive the delete notification
t4_mk_filtdelwr - create a delete filter WR @adap : adapter context @ftid : the filter ID @wr : the filter work request to populate @qid : ingress queue to receive the delete notification