Changeset 34b7ccc in rtems-libbsd


Ignore:
Timestamp:
Jan 9, 2018, 10:45:31 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
1342fad
Parents:
bdf99316
git-author:
Sebastian Huber <sebastian.huber@…> (01/09/18 10:45:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/23/18 13:55:12)
Message:

dpaa: Support FQ_TYPE_RX_PCD

Update #3277.

Location:
linux/drivers/net/ethernet/freescale/dpaa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

    rbdf99316 r34b7ccc  
    694694                }
    695695                break;
     696#ifdef __rtems__
     697        case FQ_TYPE_RX_PCD:
     698                fq->wq = 5;
     699                break;
     700#endif /* __rtems__ */
    696701        default:
    697702                WARN(1, "Invalid FQ type %d for FQID %d!\n",
     
    925930#else /* __rtems__ */
    926931        int egress_cnt = 0, conf_cnt = 0;
     932        struct qman_portal *p;
     933        int cpu;
    927934#endif /* __rtems__ */
    928935        struct dpaa_fq *fq;
     
    934941                dev_err(priv->net_dev->dev.parent,
    935942                        "No Qman software (affine) channels found");
     943#else /* __rtems__ */
     944        cpu = 0;
    936945#endif /* __rtems__ */
    937946
     
    945954                        dpaa_setup_ingress(priv, fq, &fq_cbs->rx_errq);
    946955                        break;
     956#ifdef __rtems__
     957                case FQ_TYPE_RX_PCD:
     958                        /* For MACless we can't have dynamic Rx queues */
     959                        BUG_ON(priv->mac_dev != NULL || fq->fqid == 0);
     960                        dpaa_setup_ingress(priv, fq, &fq_cbs->rx_defq);
     961                        p = qman_get_affine_portal(cpu);
     962                        fq->channel = qman_portal_get_channel(p);
     963                        cpu = (cpu + 1) % (int)rtems_get_processor_count();
     964                        break;
     965#endif /* __rtems__ */
    947966                case FQ_TYPE_TX:
    948967                        dpaa_setup_egress(priv, fq, tx_port,
     
    11101129                if (priv->use_ingress_cgr &&
    11111130                    (dpaa_fq->fq_type == FQ_TYPE_RX_DEFAULT ||
     1131#ifdef __rtems__
     1132                     dpaa_fq->fq_type == FQ_TYPE_RX_PCD ||
     1133#endif /* __rtems__ */
    11121134                     dpaa_fq->fq_type == FQ_TYPE_RX_ERROR)) {
    11131135                        initfq.we_mask |= cpu_to_be16(QM_INITFQ_WE_CGID);
  • linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h

    rbdf99316 r34b7ccc  
    5757        FQ_TYPE_RX_DEFAULT = 1, /* Rx Default FQs */
    5858        FQ_TYPE_RX_ERROR,       /* Rx Error FQs */
     59#ifdef __rtems__
     60        FQ_TYPE_RX_PCD,         /* User-defined PCDs */
     61#endif /* __rtems__ */
    5962        FQ_TYPE_TX,             /* "Real" Tx FQs */
    6063        FQ_TYPE_TX_CONFIRM,     /* Tx default Conf FQ (actually an Rx FQ) */
Note: See TracChangeset for help on using the changeset viewer.