From: Ioana Ciornei <ioana.cior...@nxp.com> Date: Fri, 15 May 2020 19:52:56 +0300
> +/* Configure ingress classification based on VLAN PCP */ > +static int set_vlan_qos(struct dpaa2_eth_priv *priv) > +{ > + struct device *dev = priv->net_dev->dev.parent; > + struct dpkg_profile_cfg kg_cfg = {0}; > + struct dpni_qos_tbl_cfg qos_cfg = {0}; > + struct dpni_rule_cfg key_params; > + void *dma_mem, *key, *mask; Please declare mask as "u16 *" > + *(u16 *)mask = cpu_to_be16(VLAN_PRIO_MASK); And remove this cast, no other code changes are necessary. Not even to the calculation of the pointer value.