MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dpni_set_offload

Function dpni_set_offload

dpdk/drivers/net/dpaa2/mc/dpni.c:747–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745 */
746
747int dpni_set_offload(struct fsl_mc_io *mc_io,
748 uint32_t cmd_flags,
749 uint16_t token,
750 enum dpni_offload type,
751 uint32_t config)
752{
753 struct mc_command cmd = { 0 };
754 struct dpni_cmd_set_offload *cmd_params;
755
756 cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_OFFLOAD,
757 cmd_flags,
758 token);
759 cmd_params = (struct dpni_cmd_set_offload *)cmd.params;
760 cmd_params->dpni_offload = type;
761 cmd_params->config = cpu_to_le32(config);
762
763 return mc_send_command(mc_io, &cmd);
764}
765
766/**
767 * dpni_get_offload() - Get DPNI offload configuration.

Callers 1

dpaa2_eth_dev_configureFunction · 0.85

Calls 2

mc_encode_cmd_headerFunction · 0.85
mc_send_commandFunction · 0.85

Tested by

no test coverage detected