Commit 3bcc0cec authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

net: sched: change names of action number helpers to be aligned with the rest



The rest of the helpers are named tcf_exts_*, so change the name of
the action number helpers to be aligned. While at it, change to inline
functions.

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4ebc1e3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ static int fill_action_fields(struct adapter *adap,
	LIST_HEAD(actions);

	exts = cls->knode.exts;
	if (tc_no_actions(exts))
	if (!tcf_exts_has_actions(exts))
		return -EINVAL;

	tcf_exts_to_list(exts, &actions);
+1 −1
Original line number Diff line number Diff line
@@ -8953,7 +8953,7 @@ static int parse_tc_actions(struct ixgbe_adapter *adapter,
	LIST_HEAD(actions);
	int err;

	if (tc_no_actions(exts))
	if (!tcf_exts_has_actions(exts))
		return -EINVAL;

	tcf_exts_to_list(exts, &actions);
+2 −2
Original line number Diff line number Diff line
@@ -1326,7 +1326,7 @@ static int parse_tc_nic_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
	LIST_HEAD(actions);
	int err;

	if (tc_no_actions(exts))
	if (!tcf_exts_has_actions(exts))
		return -EINVAL;

	attr->flow_tag = MLX5_FS_DEFAULT_FLOW_TAG;
@@ -1839,7 +1839,7 @@ static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
	bool encap = false;
	int err = 0;

	if (tc_no_actions(exts))
	if (!tcf_exts_has_actions(exts))
		return -EINVAL;

	memset(attr, 0, sizeof(*attr));
+1 −1
Original line number Diff line number Diff line
@@ -1626,7 +1626,7 @@ static int mlxsw_sp_port_add_cls_matchall(struct mlxsw_sp_port *mlxsw_sp_port,
	LIST_HEAD(actions);
	int err;

	if (!tc_single_action(cls->exts)) {
	if (!tcf_exts_has_one_action(cls->exts)) {
		netdev_err(mlxsw_sp_port->dev, "only singular actions are supported\n");
		return -EOPNOTSUPP;
	}
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp,
	LIST_HEAD(actions);
	int err;

	if (tc_no_actions(exts))
	if (!tcf_exts_has_actions(exts))
		return 0;

	/* Count action is inserted first */
Loading