[PATCH v1 1/2] net/zxdh: npsdk add flow director table ops

Stephen Hemminger stephen at networkplumber.org
Tue Jun 17 16:08:28 CEST 2025


On Tue, 17 Jun 2025 17:32:25 +0800
Bingbin Chen <chen.bingbin at zte.com.cn> wrote:

> +	uint32_t msg_result = 0;
> +	uint32_t acl_index = 0;
> +	ZXDH_AGENT_CHANNEL_ACL_MSG_T msgcfg = {
> +		.dev_id = 0,
> +		.type = ZXDH_ACL_MSG,
> +		.oper = ZXDH_ACL_INDEX_REQUEST,
> +		.vport = vport,
> +		.sdt_no = sdt_no,
> +	};
> +	ZXDH_AGENT_CHANNEL_MSG_T agent_msg = {
> +		.msg = (void *)&msgcfg,
> +		.msg_len = sizeof(ZXDH_AGENT_CHANNEL_ACL_MSG_T),
> +	};
> +
> +	rc = zxdh_np_agent_channel_sync_send(dev_id, &agent_msg, rsp_buff, sizeof(rsp_buff));
> +	if (rc != ZXDH_OK) {
> +		PMD_DRV_LOG(ERR, "agent send msg failed");
> +		return ZXDH_ERR;
> +	}
> +
> +	msg_result = rsp_buff[0];
> +	acl_index = rsp_buff[1];
> +
> +	PMD_DRV_LOG(DEBUG, "dev_id: %d, msg_result: %d", dev_id, msg_result);
> +	PMD_DRV_LOG(DEBUG, "dev_id: %d, acl_index: %d", dev_id, acl_index);
> +

Some compiler versions will complain about printing an unsigned type (msg_result)
with a signed format (%d). This problem exists many places in DPDK so no urgent
need to address it.


More information about the dev mailing list