Skip to content

Commit

Permalink
net: enetc: rename "mqprio" to "qopt"
Browse files Browse the repository at this point in the history
To gain access to the larger encapsulating structure which has the type
tc_mqprio_qopt_offload, rename just the "qopt" field as "qopt".

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ferenc Fejes <fejes@inf.elte.hu>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Vladimir Oltean authored and Jakub Kicinski committed Apr 14, 2023
1 parent a721c3e commit 50764da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/net/ethernet/freescale/enetc/enetc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2644,12 +2644,13 @@ static void enetc_reset_tc_mqprio(struct net_device *ndev)

int enetc_setup_tc_mqprio(struct net_device *ndev, void *type_data)
{
struct tc_mqprio_qopt_offload *mqprio = type_data;
struct enetc_ndev_priv *priv = netdev_priv(ndev);
struct tc_mqprio_qopt *mqprio = type_data;
struct tc_mqprio_qopt *qopt = &mqprio->qopt;
struct enetc_hw *hw = &priv->si->hw;
int num_stack_tx_queues = 0;
u8 num_tc = mqprio->num_tc;
struct enetc_bdr *tx_ring;
u8 num_tc = qopt->num_tc;
int offset, count;
int err, tc, q;

Expand All @@ -2663,8 +2664,8 @@ int enetc_setup_tc_mqprio(struct net_device *ndev, void *type_data)
return err;

for (tc = 0; tc < num_tc; tc++) {
offset = mqprio->offset[tc];
count = mqprio->count[tc];
offset = qopt->offset[tc];
count = qopt->count[tc];
num_stack_tx_queues += count;

err = netdev_set_tc_queue(ndev, tc, count, offset);
Expand Down

0 comments on commit 50764da

Please sign in to comment.