On 5/22/2017 10:39 AM, Hemant Agrawal wrote:
> In case of HW egress FQ is congested, skip further
> transmission of frames.
> 
> Signed-off-by: Hemant Agrawal <hemant.agra...@nxp.com>
> ---
>  drivers/bus/fslmc/portal/dpaa2_hw_pvt.h |   5 +-
>  drivers/net/dpaa2/dpaa2_ethdev.c        |  62 ++++++++++++++-
>  drivers/net/dpaa2/dpaa2_ethdev.h        |  14 ++++
>  drivers/net/dpaa2/dpaa2_rxtx.c          |   4 +
>  drivers/net/dpaa2/mc/dpni.c             |  47 ++++++++++++
>  drivers/net/dpaa2/mc/fsl_dpni.h         | 129 
> +++++++++++++++++++++++++++++++-
>  drivers/net/dpaa2/mc/fsl_dpni_cmd.h     |  36 +++++++++
>  7 files changed, 289 insertions(+), 8 deletions(-)

<...>

>  
> +int dpni_set_congestion_notification(struct fsl_mc_io        *mc_io,
> +                                  uint32_t           cmd_flags,
> +                                        uint16_t             token,
> +                                  enum dpni_queue_type qtype,
> +                                        uint8_t              tc_id,
> +                     const struct dpni_congestion_notification_cfg *cfg)
> +{
> +     struct mc_command cmd = { 0 };
> +
> +     /* prepare command */
> +     cmd.header = mc_encode_cmd_header(
> +                     DPNI_CMDID_SET_CONGESTION_NOTIFICATION,
> +                     cmd_flags,
> +                     token);
> +     DPNI_CMD_SET_CONGESTION_NOTIFICATION(cmd, qtype, tc_id, cfg);
> +
> +     /* send command to mc*/
> +     return mc_send_command(mc_io, &cmd);
> +}
> +
> +int dpni_get_congestion_notification(struct fsl_mc_io        *mc_io,
> +                                  uint32_t           cmd_flags,
> +                                        uint16_t             token,
> +                                  enum dpni_queue_type qtype,
> +                                        uint8_t              tc_id,
> +                             struct dpni_congestion_notification_cfg *cfg)
> +{

Since there will be a new version already, can you also fix above syntax
please?

Reply via email to