Commit d7af0448 authored by Camelia Groza's avatar Camelia Groza Committed by Jakub Kicinski

dpaa_eth: rename current skb A050385 erratum workaround

Explicitly point that the current workaround addresses skbs. This change is
in preparation for adding a workaround for XDP scenarios.
Acked-by: default avatarMadalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: default avatarCamelia Groza <camelia.groza@nxp.com>
Reviewed-by: default avatarMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a1e031ff
...@@ -2105,7 +2105,7 @@ static inline int dpaa_xmit(struct dpaa_priv *priv, ...@@ -2105,7 +2105,7 @@ static inline int dpaa_xmit(struct dpaa_priv *priv,
} }
#ifdef CONFIG_DPAA_ERRATUM_A050385 #ifdef CONFIG_DPAA_ERRATUM_A050385
static int dpaa_a050385_wa(struct net_device *net_dev, struct sk_buff **s) static int dpaa_a050385_wa_skb(struct net_device *net_dev, struct sk_buff **s)
{ {
struct dpaa_priv *priv = netdev_priv(net_dev); struct dpaa_priv *priv = netdev_priv(net_dev);
struct sk_buff *new_skb, *skb = *s; struct sk_buff *new_skb, *skb = *s;
...@@ -2221,7 +2221,7 @@ dpaa_start_xmit(struct sk_buff *skb, struct net_device *net_dev) ...@@ -2221,7 +2221,7 @@ dpaa_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
#ifdef CONFIG_DPAA_ERRATUM_A050385 #ifdef CONFIG_DPAA_ERRATUM_A050385
if (unlikely(fman_has_errata_a050385())) { if (unlikely(fman_has_errata_a050385())) {
if (dpaa_a050385_wa(net_dev, &skb)) if (dpaa_a050385_wa_skb(net_dev, &skb))
goto enomem; goto enomem;
nonlinear = skb_is_nonlinear(skb); nonlinear = skb_is_nonlinear(skb);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment