提交 c8e46f29 编写于 作者: K Keefe LIU 提交者: Xie XiuQi

Revert "net/mlx5e: Fail attempt to offload e-switch TC flows"

hulk inclusion
category: bugfix
bugzilla: 6105
CVE: NA

-------------------------------------------------

Patch "net/mlx5e: Fail attempt to offload e-switch TC flows"
depends on another patch "net/mlx5e: Use dedicated uplink
vport netdev representor", the depended patch isn't a bugfix
and it has too many conflicts with present code, so we'd
better revert this patch.
Signed-off-by: NKeefe LIU <liuqifa@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b5e63033
...@@ -924,15 +924,6 @@ static const struct net_device_ops mlx5e_netdev_ops_rep = { ...@@ -924,15 +924,6 @@ static const struct net_device_ops mlx5e_netdev_ops_rep = {
.ndo_change_mtu = mlx5e_change_rep_mtu, .ndo_change_mtu = mlx5e_change_rep_mtu,
}; };
bool mlx5e_eswitch_rep(struct net_device *netdev)
{
if (netdev->netdev_ops == &mlx5e_netdev_ops_vf_rep ||
netdev->netdev_ops == &mlx5e_netdev_ops_uplink_rep)
return true;
return false;
}
static void mlx5e_build_rep_params(struct mlx5_core_dev *mdev, static void mlx5e_build_rep_params(struct mlx5_core_dev *mdev,
struct mlx5e_params *params, u16 mtu) struct mlx5e_params *params, u16 mtu)
{ {
......
...@@ -158,9 +158,6 @@ void mlx5e_rep_encap_entry_detach(struct mlx5e_priv *priv, ...@@ -158,9 +158,6 @@ void mlx5e_rep_encap_entry_detach(struct mlx5e_priv *priv,
struct mlx5e_encap_entry *e); struct mlx5e_encap_entry *e);
void mlx5e_rep_queue_neigh_stats_work(struct mlx5e_priv *priv); void mlx5e_rep_queue_neigh_stats_work(struct mlx5e_priv *priv);
bool mlx5e_eswitch_rep(struct net_device *netdev);
#else /* CONFIG_MLX5_ESWITCH */ #else /* CONFIG_MLX5_ESWITCH */
static inline void mlx5e_register_vport_reps(struct mlx5e_priv *priv) {} static inline void mlx5e_register_vport_reps(struct mlx5e_priv *priv) {}
static inline void mlx5e_unregister_vport_reps(struct mlx5e_priv *priv) {} static inline void mlx5e_unregister_vport_reps(struct mlx5e_priv *priv) {}
......
...@@ -2721,10 +2721,6 @@ static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts, ...@@ -2721,10 +2721,6 @@ static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
is_merged_eswitch_dev(priv, out_dev)) { is_merged_eswitch_dev(priv, out_dev)) {
action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST | action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST |
MLX5_FLOW_CONTEXT_ACTION_COUNT; MLX5_FLOW_CONTEXT_ACTION_COUNT;
if (!mlx5e_eswitch_rep(out_dev))
return -EOPNOTSUPP;
out_priv = netdev_priv(out_dev); out_priv = netdev_priv(out_dev);
rpriv = out_priv->ppriv; rpriv = out_priv->ppriv;
attr->out_rep[attr->out_count] = rpriv->rep; attr->out_rep[attr->out_count] = rpriv->rep;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册