net/mlx5e: Use generic name for the forwarding dev pointer
Rename tun_dev to fwd_dev within mlx5e_tc_update_priv struct since future implementation may introduce other device types which the handler is forwarding to. Signed-off-by: Ariel Levkovich <lariel@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
28e7606fa8
commit
189ce08ebf
@ -612,8 +612,8 @@ static bool mlx5e_restore_tunnel(struct mlx5e_priv *priv, struct sk_buff *skb,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set tun_dev so we do dev_put() after datapath */
|
/* Set fwd_dev so we do dev_put() after datapath */
|
||||||
tc_priv->tun_dev = dev;
|
tc_priv->fwd_dev = dev;
|
||||||
|
|
||||||
skb->dev = dev;
|
skb->dev = dev;
|
||||||
|
|
||||||
@ -655,8 +655,8 @@ static bool mlx5e_restore_skb_chain(struct sk_buff *skb, u32 chain, u32 reg_c1,
|
|||||||
|
|
||||||
static void mlx5_rep_tc_post_napi_receive(struct mlx5e_tc_update_priv *tc_priv)
|
static void mlx5_rep_tc_post_napi_receive(struct mlx5e_tc_update_priv *tc_priv)
|
||||||
{
|
{
|
||||||
if (tc_priv->tun_dev)
|
if (tc_priv->fwd_dev)
|
||||||
dev_put(tc_priv->tun_dev);
|
dev_put(tc_priv->fwd_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mlx5e_restore_skb_sample(struct mlx5e_priv *priv, struct sk_buff *skb,
|
static void mlx5e_restore_skb_sample(struct mlx5e_priv *priv, struct sk_buff *skb,
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
int mlx5e_tc_num_filters(struct mlx5e_priv *priv, unsigned long flags);
|
int mlx5e_tc_num_filters(struct mlx5e_priv *priv, unsigned long flags);
|
||||||
|
|
||||||
struct mlx5e_tc_update_priv {
|
struct mlx5e_tc_update_priv {
|
||||||
struct net_device *tun_dev;
|
struct net_device *fwd_dev;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mlx5_nic_flow_attr {
|
struct mlx5_nic_flow_attr {
|
||||||
|
Loading…
Reference in New Issue
Block a user